For #1, I don't know.

For #2, I did exactly that, see here:

http://mikeski.net/site/node/16

Mike.


>-----Original Message-----
>From: Dave Belfer-Shevett [mailto:d...@homeport.org]
>Sent: Wednesday, September 02, 2009 4:34 PM
>To: Struts Users Mailing List
>Subject: Session variables in <s:radio> buttons - preselection and
>formatting?
>
>I have a twofold question.
>
>The first is I have a session variable called 'sendto' which contains a
>string ('registrant','none', or 'everyone').  When the page with the
>radio buttons is rendered, I want to preselect based on whatever the
>value in the session hash for 'sendto' is set to.
>
>Code:
>       <div style="float: right; width: 150px;">
>               <b>Notifications</b><hr>
>               Send email to:<br>
>               <s:radio
>                       list="#{'none':'None','registrant':'This
>Registrant','everyone':'Everyone on this invoice'}"
>                       value="#{sendto}" name="sendto" />
>               </div>
>
>I woudl have thought the value="#{sendto}" would have done that, but it
>doesn't.  I've checked and the session key 'sendto' does have the value
>'registrant' in it.
>
>Secondly - These render on a straight line, one right after another.
>I'd like line breaks <br> between each radio button.  Is this possible?
>
>Thanks!
>
>       -dbs
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>For additional commands, e-mail: user-h...@struts.apache.org


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

Reply via email to