struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tremal Naik" <tremaln...@gmail.com>
Subject Re: Can struts do it?
Date Fri, 21 Apr 2006 10:12:58 GMT
2006/4/21, Marco Mistroni <mmistroni@waersystems.com>:
> I have a DynaActionForm.  It has two array fields (String[] ownerRef and
> Boolean[] suspendPart) and some other fields.  I want to populate these
> arrays from a form and be able to submit the value from the page.
>  That's it.

why don't you define a bean, each of which containing two properties:

class myBean{
 String ownerRef;
 Boolean suspendPart;
// getters and setters ...
}

Than you may add an array property to your form:

myBean[] simpleIterate

Iterating through this array, reading and setting properties would be
much easier.

In your business logic then, you may populate the original arrays
--
TREMALNAIK

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


Mime
View raw message