If you look at the example that ships with struts you will see how the registration form is filled in with the data from the User record. The data isn't from a database, but an inmemory XML datastore.
-----Original Message----- From: Jeff Kyser [mailto:[EMAIL PROTECTED] Sent: Saturday, February 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='<your default value>', 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, 2003, at 04:38 AM, Zsolt Koppany wrote: > Hi, > > 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? > > -- > Zsolt > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]