You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Mark Lowe <ma...@talk21.com> on 2003/12/19 13:24:34 UTC

Re: setting array of elements in Action class.

If you've an array of array list as your form property

<form-property name="foo" type="java.util.ArrayList" />

or example

set("foo",int index,"myvalue);

and/or

ArrayList list = new ArrayList();
theForm.set("foo",list);

IMO this is less hassle using action forms not dynaaction forms. If you 
dont define the size in the form-property tag, you must scope to 
session.

Cheers Mark


On 24 Dec 2003, at 09:41, Amit Kumar Sharma wrote:

> I have all the elements in the HTML form with same name, how can I set 
> there
> value using the set(XXXXXXXX) property I dont know the syntax..for a 
> normal
> set it would be.
> set( FIELDNAME, VALUE )
>
> can anybody help me with the syntax.
>
>
> Regards,
> Amit Kumar Sharma
> SysArris Software Pvt Ltd
> 120A, Elephant Rock Road,
> 3rd Block, Jayanagar,
> Bangalore - 560011
> Tel.: 91-80-665 4965 / 665 5052
> amit.ks@sysarris.soft.net
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org


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