Once again, leave your anti-American political bullshit off the struts email list please. Michael Lee
----- Original Message ----- From: "James Childers" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Saturday, February 22, 2003 10:45 AM Subject: RE: What is the best method to set default values of a form? > -----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] --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.456 / Virus Database: 256 - Release Date: 2/18/2003 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

