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>
|