struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Geeta Ramani" <geeta.ram...@cmpco.com>
Subject Re: [OT]What is the best method to set default values of a form?
Date Sun, 23 Feb 2003 16:09:43 GMT
Hmm.. maybe I missed something but last I checked poking fun at our president
was quintessentially American.. :)
Geeta

"Michael C. Lee Jr." wrote:

> Once again, leave your anti-American political bullshit off the struts email
> list please.
> Michael Lee
>
> ----- Original Message -----
> From: "James Childers" <jchilders@hotels.com>
> To: "Struts Users Mailing List" <struts-user@jakarta.apache.org>
> 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:zkoppany@web.de]
> > 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: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
> ---
> 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: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message