struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "SUPRIYA MISRA" <supriya_mi...@hotmail.com>
Subject Re: radio select
Date Wed, 22 Aug 2001 13:35:21 GMT
suggestion:-you may need to reset the value in the form bean


WARNING: In order to correctly recognize cases where none of the associated 
radios are selected, the ActionForm bean associated with this form must 
include a statement setting the corresponding array to zero length in the 
reset() method.




>From: "Bille Madsen" <bmadsen@nordija.com>
>Reply-To: struts-user@jakarta.apache.org
>To: <struts-user@jakarta.apache.org>
>Subject: radio select
>Date: Wed, 22 Aug 2001 11:35:14 +0200
>
>
>Hi,
>
>I have the following code:
>
><html:radio property="radioBtn" value="mail" />
>
><html:radio property="radioBtn" value="credit" />
><html:errors property="radioBtn" />
>
>Just two normal radiobuttons, have do I use the 'selected'-option which 
>html
>provide?
>If the user select one the radio-buttons and come back to the page later,
>none of the radio-buttons are selected, but all other info is still
>presented(struts text-fields and so on).
>By the way, I get the values correct in the formbean, so no problem 
>there...
>
>Anyone having a answer?
>
>Thanks
>
>Bille
>


_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


Mime
View raw message