struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Otávio Augusto <>
Subject Re: radio checked???
Date Fri, 23 Jan 2004 08:11:12 GMT
Don't know if you got it solved, but i sugest this:

in your ActionForm, have a property called "radio", for instance. Make getRadio and setRadio(String
in the property declaration, do it this way: private String radio = "1";

In your jsp, use the radio tags this way:

<html:radio property="radio" value="1"/>  
<html:radio property="radio" value="2"/>

the first radio is going to be checked, because its default value is 1 in the ActionForm.

That works for me, I hope it helps you .

Otávio Augusto

On Tue, 20 Jan 2004 15:32:30 -0200
"Mauricio T. Ferraz" <> wrote:

> Help!! 
> I have a actionForm with a boolean property and set and get
> and in my jsp 
> <html:radio property="propertyName" value="true"/>
> <html:radio property="propertyName" value="false"/>
> The radio checked always is the second, where is "false". How I put the first to be checked
when de jsp is loaded?
> thanks

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message