This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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.
Have you checked out Aspose?
subject: Duplicate entries in request.getParameter() --- URGENT
jQuery in Action, 3rd edition