We do this quite often. We have a method which goes through the array
and inserts the elements as new dom input objects of type hidden and
name the name of the element in the form bean with an array index. eg.
<input type="hidden" name="myelement[0].name" value="Name" />
do this for all the properties for each element in your array and you
will have them in your from bean.
Frank W. Zammetti wrote:
You seem to be mixing server-side and client-side concepts... if I
understand you correctly, you have a Javascript array ON THE CLIENT that
you want to populate in the form bean ON THE SERVER. If that's not
correct, could you explain it further?
If that is correct, you need to pass the array back to the server as part
of your form submission (or AJAX request, if your going that route).
Rememeber that at the point your JSP is evaluated, it's on the server, and
Javascript has not executed yet. Seems like you might be making that
mistake, although I'm not sure.
Frank
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]