Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

getParameterValues() qestion.

 
peter cooke
Ranch Hand
Posts: 317
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Suppose I call a servlet and pass in sevaral parameters with the same name but different values.

In relation to request input parameters; How should the String[] returned by getParameters values organized?

The api does not state that the first parameter value in the request is guarenteed to be the first string in the String array returned by getParameterValues(). If I deploy my app on various servers, could I get different ordering of Strings returned by getParameterValues?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64629
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, the order is arbitrary.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic