Thanks for that Kevin.  That's pretty much what I came up with as well.

The only addition I am making is that, to make sure all of the additional
selection information is grouped correctly, and to keep away from multiple
forms is to use the x.y.z naming method to reference every thing, so:

A subsystem check box will just have the name of the subsystem (They ar all
unique), the timestamp selection for each subsytem will have the name
subsytem.timestamp, and then the siganls will be subsystem.signalname, as
all signal names within a sub system will be unique as well.

With this aproach, I can have just one VO helper, and then this can load a
selection of subsytem VOs prior to passing them deeper into the business
logic or out to the view.

Cheers, and thanks again for the comment,

Simon

----- Original Message -----
From: "Kevin Williams" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, March 14, 2003 5:56 PM
Subject: Re: Loading complex forms with Struts.


> Simon,
>
> What I've done (and I haven't tested it yet since I'm still coding
> supporting stuff so I'm not sure if it works) is to have an array
> property within my form bean.  This would hold the id's for the selected
> subsystem.  Within your jsp page, make sure all the checkboxes have the
> same name, and it should populate that array with the same name as the
> checkboxes in your form bean.
>
> I'm hoping this works for me!
>
> Kevin
>
> On Thu, 2003-03-13 at 23:39, Simon Kelly wrote:
> > Hi all,
> >
> > I have a form within a page that I need struts to populate in a specific
> > manner.  The data selection within the page is as follows:
> >
> > A variable number of subsystems, that can be independently selected.
> > Each subsystem has a time selection (single) and signal selection (one
to
> > many).
> >
> > I need the data loaded into two beans, one for the Subsystem:
> >     String name;
> >     String time;
> >     List signals;
> >
> > And then one to hold all the subsystems:
> >     List subsystems;
> >
> > 1)  I need to know if [OT] this can be written in html?
> > 2) Can struts handle loading form beans in this manner?
> >
> > Any help will, as always, be met with glowing praise and no money :-)
> >
> > Cheers
> >
> > Simon
> >
> > Institut fuer
> > Prozessdatenverarbeitung
> > und Elektronik,
> > Forschungszentrum Karlsruhe GmbH,
> > Postfach 3640,
> > D-76021 Karlsruhe,
> > Germany.
> >
> > Tel: (+49)/7247 82-4042
> > E-mail : [EMAIL PROTECTED]
> >
> >
> > ---------------------------------------------------------------------
> > 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]
>
>


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

Reply via email to