struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sri Sankaran" <Sri.Sanka...@sas.com>
Subject RE: radio button checked ?
Date Wed, 18 Dec 2002 14:34:42 GMT
The <html:radio> shows as selected if the value of the property attribute matches the
value of the value attribute.  So, if you have

<html:radio property="operation" value="yes"/> Yes
<html:radio property="operation" value="no"/> No

This will show 2 radio buttons with the first one selected if getOperation() on the form bean
returns "yes".

Sri


-----Original Message-----
From: Marcus Biel [mailto:Marcus.Biel@bmw.de] 
Sent: Wednesday, December 18, 2002 9:17 AM
To: struts-user@jakarta.apache.org
Subject: radio button checked ?


How to make a radio Button checked using Struts 1.02 ?
That would be the html equivalent:
	<input type="radio" name="name" value="value" checked>

thx in advance for your help.

marcus

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


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


Mime
View raw message