This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is this a limitation of JSP ?- I can do it in ASP

 
kris isfeld
Greenhorn
Posts: 5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a form which has:
1. A select box
2. Multiple text boxes with the same name.
Can I get all the values from the select box?
Can I get all the values of the text boxes - I seem to get only the first one declared back.
ASP returns an array of values in both cases but I can't figure out how to do this from JSP.
 
Anonymous
Ranch Hand
Posts: 18944
  • 0
  • send pies
  • Quote
  • Report post to moderator
Hi there.
 
Bhupinder Dhillon
Ranch Hand
Posts: 124
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by kris isfeld:

ASP returns an array of values in both cases but I can't figure out how to do this from JSP.

String textValues[] = request.getParameterValues("textBoxName");
 
Daniel Olson
Ranch Hand
Posts: 81
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is something you can do to see everything that is passed:
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic