Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Nair Anoop
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
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,
Anoop
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic