cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bart Molenkamp" <>
Subject RE: Java objects in JX templates
Date Tue, 31 Jan 2006 10:00:08 GMT

> -----Oorspronkelijk bericht-----
> Van: Leszek Gawron []
> This is not true. You can call static methods and even constructors.
> Both from JXPath and JEXL.
>    <jx:set var="buffer" value="${java.lang.StringBuffer('Hello ')}"/>
>    <jx:set var="ignore" value="${buffer.append( 'World!' )}"/>
> 	<hw>${buffer.toString()}</hw>
> Works like a charm in trunk.

I've had problems with the following expression:

<jx:when test="${java.lang.Class.forName( \
'com.bizzdesign.risks.assessment.UploadedEvidence'). \

(the expression is one line).

This expression works, but somehow after calling the page a few times,
the application hangs. Took me a long time to figure it out. (I've
already solved it, simply by having a method
evidence.isUploadableEvidence() with the expression written in Java).

Does anybody know what might be going wrong? (I'm just curious)


View raw message