Originally posted by Bernard Sigmund Gustav:
so then, what's the request.getParameterValues for? won't that work with array passing between jsps?
No. First some terminology. You never
pass anything from one JSP to another. You can share information via scoped variables, as Satou pointed out, or you can redirect to another JSP specifying request parameters on the query string. In either case you are not
passing information in the technical sense of the
word.
And as Satou pointed out, there is no way to pass anything but a string as a query parameter.
The getParameterValues() method is used to retrieve the values for a request parameter specified with multiple values. For example:
So you could use the above to send string array data to the second JSP by exploding it as above.
Now you still haven't answered my question. Why do your results in your original post not match your code?