Re: [OT]What is the best method to set default values of a form?

2003-02-23 Thread Geeta Ramani
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

What is the best method to set default values of a form?

2003-02-22 Thread Zsolt Koppany
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:

Re: What is the best method to set default values of a form?

2003-02-22 Thread Jeff Kyser
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

RE: What is the best method to set default values of a form?

2003-02-22 Thread James Childers
-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

RE: What is the best method to set default values of a form?

2003-02-22 Thread Zsolt Koppany
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

RE: What is the best method to set default values of a form?

2003-02-22 Thread Ray Madigan
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

Re: What is the best method to set default values of a form?

2003-02-22 Thread Rick Reumann
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 insertEmployee

Re: [OT]What is the best method to set default values of a form?

2003-02-22 Thread Michael C. Lee Jr.
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