Nathan,

<fmt:formatDate> mimics JSTL's counterpart.  In order to do formatting
correctly, you must have a locale set prior to using formatting tags.  <fmt>
tags locate locale in the following order:

1. use locale specified in parent <fmt:bundle>, if any
2. use locale specified in <fmt:setLocale>, prior to processing the tag
3. set a fallback locale by setting a locale object in the Jelly context
variable "org.apache.commons.jelly.tags.fmt.fallbackLocale"


--
Willie Vu



> -----Original Message-----
> From: nathan phillips [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, March 18, 2003 3:00
> To: [EMAIL PROTECTED]
> Subject: Jelly formatDate
> 
> 
> Does the formatDate tag work correctly?  Since Jelly does not build 
> according to the web sites instructions right now, I'm using 
> commons-jelly-20030310.073407.jar and 
> commons-jelly-tags-fmt-SNAPSHOT.jar.  
> All of these example below produce the same result of 
> 2003-03-17 00:00:00.0.
> 
> <fmt:formatDate value="${date}" pattern="MM/dd/yyyy" /> 
> <fmt:formatDate value="${date}" dateStyle="short" /> 
> <fmt:formatDate value="${date}" type="date" dateStyle="short" 
/> <fmt:formatDate value="${date}" dateStyle="full" />
> 
> Does anyone have any suggestions?  Thanks for your help.
> 
> _________________________________________________________________
> MSN 8 with e-mail virus protection service: 2 months FREE*  
> http://join.msn.com/?page=features/virus
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


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

Reply via email to