RE: Checking radio button based on object value

2004-12-02 Thread Jim Barrows
> -Original Message- > From: Ciaran Hanley [mailto:[EMAIL PROTECTED] > Sent: Thursday, December 02, 2004 11:15 AM > To: 'Struts Users Mailing List'; [EMAIL PROTECTED] > Subject: RE: Checking radio button based on object value > > > Ok so I've

RE: Checking radio button based on object value

2004-12-02 Thread Ciaran Hanley
gton [mailto:[EMAIL PROTECTED] Sent: 02 December 2004 16:13 To: Struts Users Mailing List Subject: Re: Checking radio button based on object value Struts handles the creating of the form for you. You should not be "creating" a form nor "storing it" in the session scope.

Re: Checking radio button based on object value

2004-12-02 Thread Lee Harrington
the form object I have created. Any ideas why this > happens? > > Thanks > > > > -Original Message- > From: Jim Barrows [mailto:[EMAIL PROTECTED] > Sent: 01 December 2004 19:52 > To: Struts Users Mailing List > Subject: RE: Checking radio button based on object value >

RE: Checking radio button based on object value

2004-12-02 Thread Jim Barrows
> -Original Message- > From: Ciaran Hanley [mailto:[EMAIL PROTECTED] > Sent: Thursday, December 02, 2004 8:00 AM > To: 'Struts Users Mailing List' > Subject: RE: Checking radio button based on object value > > > Thanks for your replies. > > I f

RE: Checking radio button based on object value

2004-12-02 Thread Ciaran Hanley
created. Any ideas why this happens? Thanks -Original Message- From: Jim Barrows [mailto:[EMAIL PROTECTED] Sent: 01 December 2004 19:52 To: Struts Users Mailing List Subject: RE: Checking radio button based on object value > -Original Message- > From: Ciaran Hanley [

RE: Checking radio button based on object value

2004-12-01 Thread Jim Barrows
> -Original Message- > From: Ciaran Hanley [mailto:[EMAIL PROTECTED] > Sent: Wednesday, December 01, 2004 12:11 PM > To: 'Struts Users Mailing List'; [EMAIL PROTECTED] > Subject: RE: Checking radio button based on object value > > > Ok sounds like thi

RE: Checking radio button based on object value

2004-12-01 Thread t t
riginal Message- From: t t [mailto:[EMAIL PROTECTED] Sent: 01 December 2004 18:39 To: Struts Users Mailing List Subject: Re: Checking radio button based on object value Not sure if your optionOne and optionTwo is two groups of radio button or two radio button in one group. I give you an exam

RE: Checking radio button based on object value

2004-12-01 Thread Ciaran Hanley
inal Message- > From: t t [mailto:[EMAIL PROTECTED] > Sent: 01 December 2004 18:39 > To: Struts Users Mailing List > Subject: Re: Checking radio button based on object value > > Not sure if your optionOne and optionTwo is two groups of radio button or > two radio butt

Re: Checking radio button based on object value

2004-12-01 Thread Lee Harrington
---- > From: t t [mailto:[EMAIL PROTECTED] > Sent: 01 December 2004 18:39 > To: Struts Users Mailing List > Subject: Re: Checking radio button based on object value > > Not sure if your optionOne and optionTwo is two groups of radio button or > two radio button in one gro

RE: Checking radio button based on object value

2004-12-01 Thread Ciaran Hanley
t t [mailto:[EMAIL PROTECTED] Sent: 01 December 2004 18:39 To: Struts Users Mailing List Subject: Re: Checking radio button based on object value Not sure if your optionOne and optionTwo is two groups of radio button or two radio button in one group. I give you an example to illustrate how to set

Re: Checking radio button based on object value

2004-12-01 Thread Lee Harrington
If you have and "fromBean" has properties "optionOne/optionTwo" -- then they should automatically be valued at whatever the bean properties are. Lee On Wed, 1 Dec 2004 18:19:09 -, Ciaran Hanley <[EMAIL PROTECTED]> wrote: > Hi, > > I have a form consisting of several radio buttons. Upon fo

Re: Checking radio button based on object value

2004-12-01 Thread t t
Not sure if your optionOne and optionTwo is two groups of radio button or two radio button in one group. I give you an example to illustrate how to set default values: Suppose I have a group (group1) of radio buttons, say 3. I want to preselect the first one. In my JSP file. I do this:

Checking radio button based on object value

2004-12-01 Thread Ciaran Hanley
Hi, I have a form consisting of several radio buttons. Upon form generation I need radio buttons in the form to be checked based on the attribute of a bean stored in the session. If the beans property is true then a particular radio button value of "true" should be checked. Option One