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
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
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
> -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
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,
5 matches
Mail list logo