If you use JavaScript, the date will be based on the client's system date; therefore, you must be sure all of your clients' system dates are accurately set. A server-side default gives you more control.
Don
"Galbreath,
Mark" To: "'Struts Users Mailing List'"
<[EMAIL PROTECTED]>
<Galbreath@tes cc:
sco.com> Subject: RE: Pre Populating Fields - bit
of a newbie question
03/05/2002
11:56 AM
Please respond
to "Struts
Users Mailing
List"
Use JavaScript. What's the point of having the overhead of creating an
object for something as simple as getting the current date?
Mark
-----Original Message-----
From: Mattos, John [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 05, 2002 12:28 PM
Anyone?
Pre populating fields?
I need to have a startDate and endDate field in my form, and I'd like to
prepopulate the endDate field with today's date. There's a bean that has
set/getEndDate() methods, and I get to the form from an Action.perform()
call
What's the best way to prepopulate that field?
--
To unsubscribe, e-mail: <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

