• Post Reply Bookmark Topic Watch Topic
  • New Topic

Multiple valued request parameters

 
Neil Laurance
Ranch Hand
Posts: 183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hopefully a quick question.
The ServletRequest class getParameterValues method returns a String array with an element for each value, whilst the getParameterValue only returns the first element. I have to construct a query string manually to hand over to another servlet, and I need to know what the separator is for multiple values in a query string. Example code:

Any ideas?
 
Neil Laurance
Ranch Hand
Posts: 183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sussed it. Have to pass a name=value pair for each element of the String array, for example:

Cheers
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!