• Post Reply Bookmark Topic Watch Topic
  • New Topic

Getting all of the elements from an HttpServletRequest  RSS feed

 
Dale DeMott
Ranch Hand
Posts: 515
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Okay.. I need to get all of the elements from an HttpServletRequest. I'd like to loop through them and get all of these elements. Is there a way I can do this? :P
-Dale

------------------
What's this H2SO4 doing in my fridge?? ( thud )
 
Maky Chopra
Ranch Hand
Posts: 149
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yep.. you create an Enum called, say, names[] and have Enum[] names = req.getParameterNames() ;
then loop thru names[] until nomoreelements printing out name[] and req.getParameter(name)
hope this helps.
[This message has been edited by Mak Bhandari (edited April 30, 2001).]
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!