You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Glen Mazza <gl...@yahoo.com> on 2002/07/23 21:47:06 UTC

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:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>