Hi Takhoe,

     I answer this question with the assumption that you are working in
JSP-JavaBean framework.

     When you submit the form with multiple-selection list box, the corresponding
bean variable will be set
     with a string of comma separated selected values. You have to tokanize the
string in the bean to get
     the list of selections in an array of strings.

    Suppose, you have a list-box in JSP with name "multiple" and a variable
"multiple" in the bean file and
    you are submitting the form with the selections "selection-1","selection-2" and
"selection-5". Then the
    bean variable "multiple" will be set to "selection-1,selection-2,selection-5".

   Hope I am clear and answered your question.

Cheong Takhoe wrote:

> Hi,
>
> Would like to know how would one use jsp to retrieve multiple selection
> data from a list box that was posted over. Multiple selection as in the user
> selects multiple options
> from those presented in a list box and then the user posts it over. How
> would I retrieve the values
> because when I use it under "GET", it showed
>
> Var1=AAA&Var1=AAB&Var1=AAC
>
> because all of them is under 1 parameter name.
> Anyone could help me out? Thanks...
>
> regards,
> Cheong Takhoe
>
> ===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> 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

--
*********************************************************************************
G.V. Dinesh
Systems Engineer
Wipro Technologies
3rd Floor, "Basappa Complex"
40/1A, Lavelle Road
Bangalore-560 001, India

Tel: 91-80-2215010 Extn - 310
E-mail: [EMAIL PROTECTED]

www.wipro.com
The World's First SEI CMM Level 5 Software Services Company
**************************************************************

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
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

Reply via email to