wood burning stoves 2.0*
The moose likes Servlets and the fly likes Servlet equivalent of property= Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Servlet equivalent of property="*" for form processing" Watch "Servlet equivalent of property="*" for form processing" New topic
Author

Servlet equivalent of property="*" for form processing

dibs dibley
Greenhorn

Joined: Aug 31, 2003
Posts: 13
Hi,
Just wondering if there is a way to do form processing straight from a jsp to a servlet. Do i not need to use the <jsp property="*"/> to grab all the parameters. I have a number of parameters across multiple forms so i need a way to grab all the post information in one go!
Anyone know?
Dibs
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12674
    
    5
There is a handy request method "getParameterMap" that grabs all parameters in a single operation. The only thing to watch out for is that the values in the map are String[] - arrays of String, not a single string.
See the javax.servlet.ServletRequest API
Bill


Java Resources at www.wbrogden.com
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Servlet equivalent of property="*" for form processing
 
Similar Threads
JSP - Servlet interaction.
JavaBean vs Post from a JSP
JavaBean vs Post from a JSP
Please Wait Window
First struts app help! Drop-down lists