I think you'll need to use Javascript to do this. You can take all of the
CNs from the selectionBox by looping through its DHTML options array. Put
these into a hidden field as a delimited string using the Javascript
function "join". Then at the server, separate the values from the hidden
field's string and process them.
-----Original Message-----
From: Ortiz, William J [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 20, 2000 1:24 PM
To: [EMAIL PROTECTED]
Subject: FW: Your post has been returned (Getting all the values in a
sele ction box)
Hello fellow Jsp'ers:
In the project I'm working on we display a JSP page to the user that allows
them to type in Customer Numbers(CN) in a text box. We added a method to
include multiple CN's in a selection box, they type in a CN and click on an
'Add' button, the CN will be added to the selection box and deleted from the
text box.
One of the requirements is that we process the CN's one at a time, so we
have another script that makes the 1st item in the list the default(ie.
selected). I can get this value in the servlet.
Now, we need to keep the rest of the list! But
request.getParameter("selectionBox") only 'sees' the selected value. How
could I go around this problem either in the servlet, the JSP code, or
JavaScript? T.I.A for your help.
William J Ortiz
EDS E.Solutions/BlueSphere
XEEP Buyout
e-mail: [EMAIL PROTECTED]
e
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets