Thanks Erik will do that.

-----Original Message-----
From: Erik Weber [mailto:[EMAIL PROTECTED] 
Sent: 21 April 2005 05:41 PM
To: Struts Users Mailing List
Subject: Re: Struts Radio button

I think that my answer to another post earlier this morning applies 
here, so I have pasted it:


. . . Form field values (generated by the Struts tags) are synced with 
corresponding ActionForm field values when the page is rendered. So you 
can override the ActionForm's reset method to specify initial values. 
But typically you only want to do this when you are showing a fresh 
"add" form, not an update form (which will have values prepopulated from 
database records, presumably), and not when you are showing an add form 
that has failed server-side validation (in this case you want to 
maintain whatever the user had selected) . . .

So the answer is to set the "pizzasize" property to the desired initial 
value in your ActionForm's reset method (keeping the above mentioned 
caveats in mind), as I understand it.

Erik


Neil Meyer wrote:

>Hi All,
>
>I'm trying to do the following using the struts radio button. Please advise.
>
><INPUT TYPE=RADIO NAME="pizzasize" VALUE="S"         >small<BR>
><INPUT TYPE=RADIO NAME="pizzasize" VALUE="M" CHECKED >medium<BR>
><INPUT TYPE=RADIO NAME="pizzasize" VALUE="L"         >large<P>
>
>I want to use the following but check one specific
>
><html:radio property=" pizzasize " value="S" /> small<br>
><html:radio property=" pizzasize " value="M" /> medium <br>
><html:radio property=" pizzasize " value="L" /> large 
>
>Regards
>Neil
>
>-----Original Message-----
>From: Vamsee Kanakala [mailto:[EMAIL PROTECTED] 
>Sent: 18 January 2005 01:28 PM
>To: Struts Users Mailing List
>Subject: Re: JDBC Driver
>
>David Bolsover wrote:
>
>  
>
>>What is wrong with the Microsoft driver?
>>
>> 
>>
>>    
>>
>Well, I can actually give a whole lot of reasons. One, it's extremely 
>slow. Two, you can retrieve objects from ResultSet only in a certain 
>order. Three, sometimes it just conks out giving strange errors. If you 
>check for them on the Microsoft website, frequently they say "nothing 
>can be done about it, that's how it was implemented". Thankfully, jTDS 
>saved the day for me. It's fast, stable and implements JDBC 3.
>
>Vamsee.
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>  
>

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


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

Reply via email to