my dog learned polymorphism*
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "getParameterValues() qestion." Watch "getParameterValues() qestion." New topic

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

Joined: Jan 10, 2002
Posts: 60740

Yes, the order is arbitrary.

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