cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leszek Gawron <lgaw...@mobilebox.pl>
Subject Re: [JXTemplate] expression is not evaluated?
Date Mon, 28 Nov 2005 08:19:57 GMT
hepabolu wrote:
> Can someone please explain why:
> 
> <jx:set var="mydate" value="${java.util.Date()}"/>
> 
> and
> 
> <jx:out value="${java.util.Date()}"/>
> 
> result in nothing
> 
> and
> 
> <jx:formatDate value="${java.util.Date()}" pattern="yyyyMMdd"/>
> 
> results in 'Cannot format given Object as a Date'?
> 
> Cocoon 2.1.9-dev
> 
> 
> I've seen a similar message here:
> 
> http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=107801323208467&w=2
I think you are not using flow. Unfortunatelly JX contract is different 
when used outside flow in 2.1.x (access to ${java.*} is performed by rhino).

We could backport jxtg from trunk but it's current state would force 
users to handle incompatibilities. It would also require Request, 
Session, Context interfaces to be extended.

-- 
Leszek Gawron                                      lgawron@mobilebox.pl
IT Manager                                         MobileBox sp. z o.o.
+48 (61) 855 06 67                              http://www.mobilebox.pl
mobile: +48 (501) 720 812                       fax: +48 (61) 853 29 65

Mime
View raw message