• Post Reply Bookmark Topic Watch Topic
  • New Topic

getting parameters from url

 
Alex Kravets
Ranch Hand
Posts: 476
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I calling a JSP from another JSP by url rewriting. At any given time I can send any numbers of parameters to JSP. I can have test.jsp?par1=4&par2=5 or test.jsp?par1=5&par2=3&par3=6&par4=10. How can I in one shot get all my parameters in an easy way? I know I can use QueryString() and tokenize this string, but is there an easier way?

thanks,
Alex
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65530
108
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
request.getParameterNames(), then iterate over the results getting the values.
[ November 19, 2004: Message edited by: Bear Bibeault ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!