aspose file tools*
The moose likes Servlets and the fly likes getParameterValues() qestion. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "getParameterValues() qestion." Watch "getParameterValues() qestion." New topic
Author

getParameterValues() qestion.

peter cooke
Ranch Hand

Joined: Mar 16, 2004
Posts: 314
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?


CIAO Peter M. Cooke
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60077
    
  65

Yes, the order is arbitrary.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: getParameterValues() qestion.
 
Similar Threads
RequestDispatcher Parameters
ServletContext
getParameterValues order
Question About getParameterMap
drop down list doPost() servlet