Thanks a lot! :)
--
On 06 Apr 2002 20:42:59 -080
David M. Karr wrote:
>>>>>> "days" == days 81 <days> writes:
>
> days> On Sat, 6 Apr 2002 21:01:03
> days> srinivas wrote:
> >> set the value of priorType in struts form to one of the values {"1", "2"}.
> >> so always this value will be selected.
> >>
> >> -----Original Message-----
> >> From: days [mailto:[EMAIL PROTECTED]]
> >> Sent: Saturday, April 06, 2002 8:45 PM
> >> To: Struts Users Mailing List
> >> Subject: struts radio button
> >>
> >> Hi...anyone out there knows how to set one of the radio buttons to be
> >> selected by default?
> >> In HTML, we have set it using the "checked" attribute...however under the
> >> struts form tag documentation, there isn't any "checked" attribute for the
> >> radio button. Mine appears like the following:
> >>
> >> <html:radio property="priorType" value="1"/>Important
> >> <html:radio property="priorType" value="2"/>Urgent
>
> days> Hi thanks for replying...but what do you mean by "set the value of
>priorType in struts form to one of the values {"1", "2"} "? Can you use an example to
>illustrates this?
>
>He means to set the attribute in the form bean to that value before forwarding
>to the page. You have an attribute on your form bean called "priorType". If
>you set it to the value "2" before forwarding, then the second radio button
>will be selected.
>
>--
>===================================================================
>David M. Karr ; Java/J2EE/XML/Unix/C++
>[EMAIL PROTECTED]
>
>
>--
>To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>
See Dave Matthews Band live or win a signed guitar
http://r.lycos.com/r/bmgfly_mail_dmb/http://win.ipromotions.com/lycos_020201/splash.asp
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>