• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

parameters

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
I read for retrieve HTML form parameters from the request there are getParameter, getParameterNames and getParameterValues.
What happens with getParameterMap()?
Thank you in advance.
 
Chintan Rajyaguru
Ranch Hand
Posts: 341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is what API doc says
Returns a java.util.Map of the parameters of this request. Request parameters are extra information sent with the request. For HTTP servlets, parameters are contained in the query string or posted form data.
Returns:
an immutable java.util.Map containing parameter names as keys and parameter values as map values. The keys in the parameter map are of type String. The values in the parameter map are of type String array.
Map will give you all the parameter names and values in one shot. You could get values seperately from the map or use getParameter{values}(String name) method.
Chintan
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic