Il giorno 27/gen/06, alle ore 15:54, Leszek Gawron ha scritto:

Ugo Cei wrote:
Our docs [1] state that something like:
 <jx:forEach var="${var}"
         items="${java.util.StringTokenizer(items, delims)}">
  </jx:forEach>
should work. However, that doesn't seem to be the case, at least in 2.1.8 while it apparently worked before. I did a few more tests and discovered that even simple cases like ${java.util.Date ()} produce no output and no error message. This even if I put "Packages." in front of the package name. Is this a bug or what?
    Ugo
[1] http://cocoon.apache.org/2.1/userdocs/flow/jxtemplate.html

Didn't you want to do:
<jx:forEach var="varName"
  items="${java.util.StringTokenizer(items, delims)}">
</jx:forEach>

The code I copied above is straight from our docs, but it doesn't make an inch of a difference whether I change to what you suggest or not. The problem is that invoking Java class constructors or calling static methods does not work.

        Ugo


--
Ugo Cei
Tech Blog: http://agylen.com/
Open Source Zone: http://oszone.org/