Re: What is the best method to set default values of a form?

2003-02-22 Thread Rick Reumann
On Sat, Feb 22,'03 (11:38 AM GMT+0100), Zsolt wrote: > I understand that the reset method should not be used to set the > default values of the fields of a form. What is the preferred way? I think it's best to populate the default form information in an ActionClass. So if I had an insertEmploye

RE: What is the best method to set default values of a form?

2003-02-22 Thread Ray Madigan
ruary 22, 2003 6:36 AM To: Struts Users Mailing List Subject: Re: What is the best method to set default values of a form? For Dyna forms, you can use the initial='', and on a regular form, for things like radio buttons, the default value is based on the underlying form bean's

RE: What is the best method to set default values of a form?

2003-02-22 Thread Zsolt Koppany
Sorry, but I have to read the data from the database. Zsolt On Sat, 2003-02-22 at 16:45, James Childers wrote: > > -Original Message- > > From: Zsolt Koppany [mailto:[EMAIL PROTECTED] > > Sent: Saturday, February 22, 2003 4:39 AM > > To: struts mail list > > Subject: What is the best met

RE: What is the best method to set default values of a form?

2003-02-22 Thread James Childers
> -Original Message- > From: Zsolt Koppany [mailto:[EMAIL PROTECTED] > Sent: Saturday, February 22, 2003 4:39 AM > To: struts mail list > Subject: What is the best method to set default values of a form? > > I understand that the reset method should not be used to set > the default > valu

Re: What is the best method to set default values of a form?

2003-02-22 Thread Jeff Kyser
For Dyna forms, you can use the initial='', and on a regular form, for things like radio buttons, the default value is based on the underlying form bean's value. http://husted.com/struts/tips/016.html but not sure about html:text fields in regular ActionForms... -jeff On Saturday, February 22,