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 method to set default values of a form? > > > > 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 > > > > I don't know about "best way", but I usually set the default values in the field's > declaration: > > public final class MakeACallForm extends ActionForm { > > private String name = "George 'I Like War!' Bush"; > private String telephoneNumber = "1-800-DA-WHITE-HOUSE"; > ... etc ... > > ... getters and setters for above ... > > } > > -= J > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- Zsolt --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

