File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes Multi select box to JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Multi select box to JSP" Watch "Multi select box to JSP" New topic
Author

Multi select box to JSP

Kyupa Supa
Ranch Hand

Joined: Jun 23, 2012
Posts: 30
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

Joined: Jan 28, 2008
Posts: 5575

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

Joined: Jun 23, 2012
Posts: 30
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

Joined: Jan 10, 2002
Posts: 61434
    
  67

Why is the value of all the options the string "cid"?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Kyupa Supa
Ranch Hand

Joined: Jun 23, 2012
Posts: 30
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 :)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Multi select box to JSP