Well, the radio button will be automatically selected based on the value
attribute of the <html:radio>.  If the corresponding property is equal to
the value specified, it will be selected automatically.  Just make sure that
the property is set to whatever it needs to be before it hits the JSP with
the radio buttons.


~ Keith
http://www.buffalo.edu/~kkamholz



-----Original Message-----
From: Glen Mazza [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 23, 2002 3:47 PM
To: [EMAIL PROTECTED]
Subject: html:radio, needing to pre-check a button with DynaActionForm


Hello,

I'm using html:radio tags and I would like one of the
radio buttons to be preselected when the JSP screen
appears.  (My action form is a DynaActionForm which
I'm not subclassing.)  

For example, I'd like to convert this:
<INPUT type="radio" name="searchType" value="SSN"
checked="CHECKED" %>

to this:
<html:radio property="searchType" value="SSN"
checked="CHECKED" %>

but there is no checked attribute.  I've searched for
this on the ML Archive, some said for ActionForms to
just initialize the property to the value in the AF
constructor.  However, I'm using a DynaActionForm--how
do I set the CHECKED property here?

Thanks,
Glen

_________________________________________________________
Do You Yahoo!?
Información de Estados Unidos y América Latina, en Yahoo! Noticias.
Visítanos en http://noticias.espanol.yahoo.com

--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to