Re: ArrayList as an element of DynaActionForm
Mark, my ArrayList is a list of another value object beans which has few string properties. In my JSP I use c:foreach and display all fields in the array, of course I make them editable. When I submit the button, I would think struts is smart enought to move the form in HttpServletRequest back to the DynaActionForm. am I wrong? -Dan - Original Message - From: Mark Lowe [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, June 03, 2003 2:32 AM Subject: Re: ArrayList as an element of DynaActionForm How/where do you populate your ArrayList? On Tuesday, Jun 3, 2003, at 08:58 Europe/London, Dan Tran wrote: 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 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
ArrayList as an element of DynaActionForm
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
Re: ArrayList as an element of DynaActionForm
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]
Re: ArrayList as an element of DynaActionForm
How/where do you populate your ArrayList? On Tuesday, Jun 3, 2003, at 08:58 Europe/London, Dan Tran wrote: 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 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]