struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Newton <newton.d...@yahoo.com>
Subject Re: Undefined number of input parameter in a form.
Date Thu, 08 Feb 2007 21:22:41 GMT
--- Pierre-Alain Branger <pbranger@ccg.unam.mx> wrote:
> Yes I have seen that it is possible to use an
> ArrayList in DynaActionForm.
> [...] 

<input type="text" name="value[index]">

You may need to just add an index from your iteration
to the input tag.

http://struts.apache.org/1.2.9/faqs/indexedprops.html

might provide more insight than I have time for right
now :) But basically if you're building the input tags
by hand IIRC you can just add the array notation and
as long as it's defined as an array in your ActionForm
(or DynaActionForm) you may be okay (I did something
similar, also with Velocity).

Dave



 
____________________________________________________________________________________
Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message