If you have <html:form name="formBean">

and "fromBean" has properties "optionOne/optionTwo" -- then they
should automatically be valued at whatever the bean properties are.

Lee


On Wed, 1 Dec 2004 18:19:09 -0000, Ciaran Hanley
<[EMAIL PROTECTED]> wrote:
> Hi,
> 
> I have a form consisting of several radio buttons. Upon form generation I
> need radio buttons in the form to be checked based on the attribute of a
> bean stored in the session. If the beans property is true then a particular
> radio button value of "true" should be checked.
> 
> Option One
> 
> <html:radio property="optionOne" value="true" />
> 
> <html:radio property="optionOne" value="false" />
> 
> Option Two
> 
> <html:radio property="optionTwo" value="true" />
> 
> <html:radio property="optionTwo" value="false" />
> 
> I want these preselected based on a bean which has variables corresponding
> to each radio button
> 
> boolean optionOne = false;
> 
> boolean optionTwo = true;
> 
> How can I achieve this?
> 
> Thanks,
> 
> CH
> 
>

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

Reply via email to