15) View Ordinary Parameters from the Request.

 

back to main index

 

Xload provides some methods that are exactly the same as in the HttpServletRequest interface. These methods are ones which access ordinary parameters (not file parameters) that are sent with the request. These parameters can only be accessed after the upload() method is called as they exist within the body of the request. The code below demonstrates:

 

 

XloadManager xman = new XloadManager(request);

...

...

xman.upload();

String param = xman.getParameter("param");

String[] paramArray = xman.getParameterValues("param");

Map allParams = xman.getParameterMap();

Enumeration paramNames = xman.getParameterNames();

 

 

 

 

where:

request - HttpServletRequest object.

param - Ordinary text parameter name inside html (or other) form.

 

 

 

 

 

 

 

© Gubutech(Xload) 2006 (v1.2)