If I understand you correctly..... >From looking at this html.....
You have a form with methods: getA() (and setters also) getB() that return some kind of bean with methods: getAc() which also returns a bean with methods: getOwn() getAll() Using the iterate on a Collection will allow you to populate your choices. Where you get them is up to you (db, hard-coded, resource file) And struts will happily "select" and "update" your form for you. Your sample html gives me (us) NO clue to help you. JM > -----Original Message----- > From: Mike Dewhirst [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, May 14, 2002 12:41 PM > To: 'Struts Users Mailing List' > Subject: option groups > > > Could somebody tell me, is the following possible to implement using sta? > > I want to use the Struts model correctly to implement a page that has this > layout: > > <form name="" action=".."> > > <input type="radio" name="a.ac.own" value="na"> > <input type="radio" name="a.ac.own" value="ro"> > <input type="radio" name="a.ac.own" value="rw"> > > <input type="radio" name="a.ac.all" value="na"> > <input type="radio" name="a.ac.all" value="ro"> > <input type="radio" name="a.ac.all" value="rw"> > > <input type="radio" name="b.ac.own" value="na"> > <input type="radio" name="b.ac.own" value="ro"> > <input type="radio" name="b.ac.own" value="rw"> > > <input type="radio" name="b.ac.all" value="na"> > <input type="radio" name="b.ac.all" value="ro"> > <input type="radio" name="b.ac.all" value="rw"> > > ... > > </form> > > what would then be in the ActionForm? > > Say if I have a HashMap in the ActionForm that contained the Names and > Values pairs, would Struts populate the HashMap with the values from the > form? > > Is there a standard mechanism for writing out the radios from a HashMap? > I've been racking my brain over this for a few days now, and can't see a > "tidy" solution based purely onsdtandard Struts custom tags and classes. > > Any advice/ideas about how to do this would be very greatfully > appreciatted!! > > Thanks, > > Mike > > > This message was written in plain text mode. > Everything below the dotted line was not > written by the author of this email. > ---------------------- > > > =********************************************************** > > If you are not the intended recipient, employee or agent > responsible for delivering the message to the intended recipient, > you are hereby notified that any dissemination or copying of this > communication and its attachments is strictly prohibited. > > If you have received this communication and its attachments in > error, please return the original message and attachments to the > sender using the reply facility on e-mail. > > Internet communications are not secure and therefore the UCLES > Group does not accept legal responsibility for the contents of > this message. Any views or opinions presented are solely those > of the author and do not necessarily represent those of the UCLES > Group unless otherwise specifically stated. > > This footnote also confirms that this email message has been swept by > MIMEsweeper for the presence of computer viruses although this > does not guarantee that this email is virus free. > > **********************************************************= > > > > *********************************************************** > > If you are not the intended recipient, employee or agent > responsible for delivering the message to the intended recipient, > you are hereby notified that any dissemination or copying of this > communication and its attachments is strictly prohibited. > > If you have received this communication and its attachments in > error, please return the original message and attachments to the > sender using the reply facility on e-mail. > Internet communications are not secure and therefore the UCLES > Group does not accept legal responsibility for the contents of > this message. Any views or opinions presented are solely those > of the author and do not necessarily represent those of the UCLES > Group unless otherwise specifically stated. > > This footnote also confirms that this email message has been swept by > MIMEsweeper for the presence of computer viruses although this > does not guarantee that this email is virus free. > > *********************************************************** > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

