Never mind!
I included name="SurveyDetailForm" on html:radio
<html:radio name="SurveyDetailForm" property="bFlag" value="Yes">Yes</html:radio>
<html:radio name="SurveyDetailForm" property="bFlag" value="No">No</html:radio>
and works
For some reason the "name" that is suppose to be:
Is not picking the bean associated with the form tag.
Name: The attribute name of the bean whose properties are consulted when rendering the current value of this input field. If not specified, the bean associated with the form tag we are nested within is utilized.
Thank you
Leo
From: "Leonardo Maciel" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: preselect radio button
Date: Wed, 20 Nov 2002 00:16:04 +0000
Sorry bother with basic stuff, but does preselect value works on radio button?
-- I have the JSP code:
<TR><TD>
<bean:write name="SurveyDetailForm" property="bFlag" />
<html:radio property="bFlag" value="Yes">Yes</html:radio>
<html:radio property="bFlag" value="No">No</html:radio>
</TD></TR>
-- That produces:
Yes O Yes O No
Wasn't Yes suppose to be checked?
Thank you a lot,
Leo
_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>