U get an array of strings. Loop through the array.

I think this is the way to do it. Pls correct me if I am wrong.

String[] theArray = Request.getParameter("comboname");

for (int i = 0; i < theArray.length; i++) {
             what u need.
}


liza



----- Original Message -----
From: "Portal Team" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, April 03, 2000 10:09 AM
Subject: Request.getParameter() question


> Hi
>
> I need to refer to *all* the values of a combobox in one page across the
> session.
>
> i can get the selected value by Request.getParameter("comboname");
>
> how can i refer to all the values?
>
> Eg. I have
>
> <form name="myform" action="get.jsp">
> <select name="mycombo"> <option> 1 <option> 2 <option 3 </select>
> <input type="Submit">
> </form>
> more values are added to the form dynamically
>
> in get.jsp i want to be able to read *all* the values of myform.mycombo
>
> i am unable to have jsp code within javascript code
> <script>
> function put()
> {
> <% write values of combo into vector which is put in session %>
> }
> </script>
>
> neither can i have a stand alone function in JSP ; both of which i
> understand are not possible in JSP. How do i get around this problem?
>
> I would really appreciate your suggestions
>
> thank you in advance
> Vineet
>
> ______________________________________________________
> Get Your Private, Free Email at http://www.hotmail.com
>
>
===========================================================================
> 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


__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com

===========================================================================
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