Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Multi select box to JSP

 
Kyupa Supa
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In 1st JSP page I have a form with multi-select box. After user choses the values, I want to display them in a table in 2nd JSP page, but i see only the vector's name. Means, when displaying sids[i], I get only the name "sids" in the table.

In 1st JSP page I have:



User presses "Link" button so the next JSP page is displayed.


In the 2nd JSP page:



................................................


 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1.
for all the option values associated to one key/label ? which is wrong

2.
why this check? remove it.

3.WhyNotUseScriptlets
 
Kyupa Supa
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
for all the option values associated to one key/label ? which is wrong

But I don't know how many values are
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64631
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why is the value of all the options the string "cid"?
 
Kyupa Supa
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:Why is the value of all the options the string "cid"?


I notice the problem now; I fixed it as so:



And it posts the user chosen values to the next page now :)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic