struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Derrick Koes" <>
Subject RE: Formatting a date with a different time zone.
Date Tue, 01 Feb 2005 23:33:20 GMT

Yes, the fmt library looks like the winner.  It doesn't seem to pick up my key from my resource
file in the timeStyle attribute.  How do I do that?

 <fmt:timeZone value="Session.timeZoneID">
              <fmt:formatDate value="${startDate}" type="time" timeStyle="ilt.time.format"/>


-----Original Message-----
From: Joe Germuska [] 
Sent: Tuesday, February 01, 2005 6:09 PM
To: Derrick Koes; Struts User Apache (E-mail)
Subject: Re: Formatting a date with a different time zone.

At 5:55 PM -0500 2/1/05, Derrick Koes wrote:
>Can someone point me to the struts tag to use to format a date with a 
>different time zone than the system default (i.e.
>Calendar.getInstance(TimeZone) vs. Calendar.getInstance())?

I would probably recommend using the JSTL formatDate tag instead of any Struts tag:

You could probably also use bean:write with the "format" (or
"formatKey") attribute:  You would specify the "format"
as if you were using java.text.MessageFormat with your bean as the single replacement argument
to the format string.


Joe Germuska       
"Narrow minds are weapons made for mass destruction"  -The Ex

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message