jQuery in Action, 3rd edition
The moose likes Servlets and the fly likes Duplicate entries in request.getParameter() --- URGENT Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Duplicate entries in request.getParameter() --- URGENT" Watch "Duplicate entries in request.getParameter() --- URGENT" New topic

Duplicate entries in request.getParameter() --- URGENT

Nair Anoop
Ranch Hand

Joined: May 09, 2001
Posts: 68
Is it possible to retrieve multiple entries of the same name using request.getParameter() ??
For example: xyz.jsp?id=val1&id=val2&id=val3
Can I get val1, val2 and val3 in the jsp ? (using either GET or POST)
Thanks in advance,
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

If you use a bunch of checkboxes in a form, all named the same thing, then the way you retrieve them is by using a different method on the request.

It's in the API. Look at getParameter, and then look two down.
I agree. Here's the link: http://aspose.com/file-tools
subject: Duplicate entries in request.getParameter() --- URGENT
It's not a secret anymore!