NO!

Either create the simple date format for each user;s session

public final static String   UNIVERSAL_DATE_FORMAT_KEY=" UNIVERSAL_DATE_FORMAT"
session.setAttribute( UNIVERSAL_DATE_FORMAT_KEY,
               new SimpleDateFormat( "yyyy-MM-dd" ) );

or put it in the application context.

--
Peter Pilgrim                 ++44 (0)207-545-9923

............................................ Swamped under electionic mails


---------------------------------------- Message History 
----------------------------------------


From: [EMAIL PROTECTED] on 04/02/2002 18:34 EST

Please respond to "Struts Users Mailing List" <[EMAIL PROTECTED]>

To:   [EMAIL PROTECTED]
cc:
Subject:  RE: Formatting Dates, Integers...


So is the answser to create global Format object and synchronize access?

-----Original Message-----
From: Jeff Martin [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 04, 2002 5:56 PM
To: Struts Users Mailing List
Subject: RE: Formatting Dates, Integers...


Be very careful about using DateFormatter's that way. I learned a hard
lesson in a previous project that DateFormater (and even just the format
method) is not thread safe.

Jeff



--

This e-mail may contain confidential and/or privileged information. If you are not the 
intended recipient (or have received this e-mail in error) please notify the sender 
immediately and destroy this e-mail. Any unauthorized copying, disclosure or 
distribution of the material in this e-mail is strictly forbidden.



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to