You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Neil Meyer <ne...@cxchange.co.za> on 2005/04/21 17:01:58 UTC
Struts Radio button
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:vkanakala@spymac.com]
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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Struts Radio button
Posted by Erik Weber <er...@mindspring.com>.
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:vkanakala@spymac.com]
>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: user-unsubscribe@struts.apache.org
>For additional commands, e-mail: user-help@struts.apache.org
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>For additional commands, e-mail: user-help@struts.apache.org
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org