This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Servlet equivalent of property="*" for form processing

 
dibs dibley
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13064
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic