cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leszek Gawron <lgaw...@mobilebox.pl>
Subject JXTG: from flow vs directly from sitemap
Date Fri, 18 Feb 2005 08:25:10 GMT
Daniel and I have found out some strange behaviour concerning JEXL in 
Jxtg. Users started reporting this also:

http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=110867204019252&w=2

The only thing we know is that the problems occur when the pipeline is 
not invoked from flowscript.

<root xmlns:jx="http://apache.org/cocoon/templates/jx/1.0">

   <test1>
     <jx:set var="var1" value="foo"/>
     <jx:out value="${var1}"/>
   </test1>

   <test2>
     <jx:set var="map" value="${java.util.HashMap()}"/>
     <jx:set var="ignored" value="${map.put('foo', 'bar')}"/>
     <jx:out value="${map.foo}"/>
   </test2>

</root>

For what we know test2 does not work. "map" variable is not properly 
initialized.

Could anybody comment?
-- 
Leszek Gawron                                      lgawron@mobilebox.pl
Project 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