struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mike Baranski" <>
Subject RE: Session variables in <s:radio> buttons - preselection and formatting?
Date Wed, 02 Sep 2009 20:49:51 GMT
For #1, I don't know.

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


>-----Original Message-----
>From: Dave Belfer-Shevett []
>Sent: Wednesday, September 02, 2009 4:34 PM
>To: Struts Users Mailing List
>Subject: Session variables in <s:radio> buttons - preselection and
>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.
>	<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?
>	-dbs
>To unsubscribe, e-mail:
>For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message