You do it exactly the same way, although you specify the values on the tags as you would for adding a new record. eg
<html:radio name="person" property="gender" value="M">Male <html:radio name="person" property="gender" value="F">Female Struts will automatically check the radio control that matches the current value. Kind regards mc On 19 Sep 2005 at 18:04, rahul wrote: > hi all, > > I am looking at some simplified way of displaying the radio button > on a jsp depending upon the value of an ActionForm's property. > > For example I have got an ActionForm with a property name sex, which can > take 'M' or 'F' as input. > > Now after storing the value in an ActionForm instance (which is then set as > a request > attribute) from database, I am forwarding the request to a jsp where I need > to > display the values I collected. like > > (.) Male > ( ) Female > > Is there any elegant way of doing this using <html:radio> tags in struts ? > > > I know its pretty simple in case of simple input box where we do it by > <html: text property="sex" name="MyActionForm" /> but how to go with radio > buttons ? > > > Any suggestions ? > > --Rahul > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > -- > No virus found in this incoming message. > Checked by AVG Anti-Virus. > Version: 7.0.344 / Virus Database: 267.10.25/102 - Release Date: 14/09/2005 > FOCUS Computing Mob: 0415 24 26 24 [EMAIL PROTECTED] http://www.focus-computing.com.au -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.344 / Virus Database: 267.10.25/102 - Release Date: 14/09/2005 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]