>
> Thanks for the reply,
>
> > > how can i refer to all the values?
> > >
> >.getParameterValues("comboname");
>
>
> If none of the values in the combo box are selected, this returns null
> <%=request.getParameterValues("cbyoursel")%> , is the code i tried for a
> cbbox cbyoursel which is populated with values but has *none selected*.
>
> Is there a way i can select all values from javascript code? or get all
> values even if not selected.
>
Ah -- you don't want only the selected values from a multi-select -- you
want _all_ of the options.
Two ways, that I can think of:
1. When you build the list dynamically on the server, save it and refer to
it subsequently.
2. Use javaScript to run through the options and assign them to a form
variable before the form gets submitted. I use this in one page where I have
script that turns an HTML table into an XML document and then assigns the
document to a hidden form variable.
_3
M
===========================================================================
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