Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

getParameterValues order

 
Lidia Cyc
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i've read that getParameterNames returned Enumeration is not required
to return the parameters in the order they are written in html form.
what about getParameterValues? are the parameter values returned String[] keeps the order of values as they are in the form?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65220
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, there is no order guarentee.
bear
 
Tom Blough
Ranch Hand
Posts: 263
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is not even a guarantee that the BROWSER will send the elements in the order they are defined in the form. Run your form as a GET and look at the order of the elements on the URL. Chances are they will not be in the order you are expecting them.
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Cyc. I was wondering where you are from? Because Cyc is a very interesting name. A pretty cool name if you ask me actually.
Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic