Re: radio checked???

2004-01-23 Thread Otávio Augusto
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 s).
in the property declaration, do it this way: private String radio = "1";

In your jsp, use the radio tags this way:

  


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" <[EMAIL PROTECTED]> wrote:

> Help!! 
> I have a actionForm with a boolean property and set and get
> and in my jsp 
> 
> 
> 
> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: radio checked???

2004-01-21 Thread Wendy Smoak
> From: Mauricio T. Ferraz [mailto:[EMAIL PROTECTED] 
> I have a actionForm with a boolean property and set and get
> and in my jsp 
> 
> 
> The radio checked always is the second, where is "false". How 
> I put the first to be checked when de jsp is loaded?

Set the corresponding property to false in the ActionForm before
forwarding to the JSP.  Struts will take care of selecting the correct
item when it renders the HTML.

-- 
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management 

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



radio checked???

2004-01-21 Thread Mauricio T. Ferraz
Help!! 
I have a actionForm with a boolean property and set and get
and in my jsp 



The radio checked always is the second, where is "false". How I put the first to be 
checked when de jsp is loaded?


thanks