• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Order of parameter values with same name

 
Balamurugan Muthiah
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I use the following url to invoke TestServlet http://myserver:9080/MyWebProject/TestServlet1?user=firstuser&user=anotheruser

The TestServlet has the following code snippet

Is there any guarantee that the returned value is always "firstuser"?
 
Nicholas Cheung
Ranch Hand
Posts: 4982
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
YES.

If you want to get all values of the same parameter names, you can use:


Nick
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic