The only way I can think of is if you have a session and store that
array in the session on the jsp side and then let the servlet pick it
up. Or, I suppose you could serialize it out on the jsp side and then
serialize it back in on the servlet side. But disk reads are expensive,
so I'd opt for the session.

Jason

Kelvin Tee wrote:

> Is there any way of passing an array from a .jsp file to a servlet? In
> the .jsp file, there is a listbox with a list of options. What I
> intend to do is to pass the entire content of the listbox into a
> servlet so that it can be processed. I can iterate thru each listbox
> elements in a JavaScript function using the options object and store
> each element in an array but how am I suppose to pass the array to a
> servlet? Any solution would be most appreciated. Thanks.

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to