Pls refer <optonsCollection> tag . I tried with treemap. It is working fine.

I think this will retain the all the collections ( including arraylist) object in struts form.

<html:optionsCollection name="searchDispatchResultForm" property="comboShippers" value="key" label="value" />

From: "Dan Tran" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Subject: ArrayList as an element of DynaActionForm
Date: Tue, 3 Jun 2003 00:58:39 -0700

Hello, I define an ArrayList as an element of my DynaActionForm.

I set up my form and load it up on my jsp using <c:foreach>

But when I submit the form back to the server, my ArrayList always empty.

What did I do wrong?

Thanks

-Dan

_________________________________________________________________
Got a wish? Make it come true. http://server1.msn.co.in/msnleads/citibankpersonalloan/index.asp Best personal loans!



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to