This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes JSP and the fly likes Multi select box to JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSP
Reply 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: 56202
    
  13

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


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About 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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Multi select box to JSP
 
Similar Threads
problem in getting combo box values
Problems with form validation
select comes to default again
checkbox and select
how to insert multiple check box values into the database using single parameter