cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bart Molenkamp" <b.molenk...@bizzdesign.nl>
Subject RE: JXTemplate boolean syntax
Date Thu, 03 Mar 2005 15:07:32 GMT
Hi Derek,

This expression seems good to me, except that you forgot to end it. You
wrote:

<jx:if test="${bar1 != null &amp;&amp; (foo1!= null">

But should be:
<jx:if test="${bar1 != null &amp;&amp; (foo1!= null)}">

Mind the ")}" at the end.

HTH,
Bart.

> -----Original Message-----
> From: Derek Hohls [mailto:DHohls@csir.co.za]
> Sent: Thursday, March 03, 2005 4:06 PM
> To: users@cocoon.apache.org
> Subject: JXTemplate boolean syntax
> 
> How do I use the "and" syntax in a JXTemplate
> boolean test?
> 
> If I have:
> <jx:if test="${bar1 != null && (foo1 != null">
> I get:
> org.xml.sax.SAXParseException: The entity name must immediately follow
> the '&' in the entity reference.
> 
> But if I use:
> <jx:if test="${bar1 != null &amp;&amp; (foo1!= null">
> or
> <jx:if test="${bar1 != null and (foo1!= null">
> 
> I get:
> org.apache.commons.jexl.parser.ParseException: Encountered ";". Was
> expecting one of: ")" ... "||" ... "or" ... "&&" ... "and" ... "|" ...
> "^" ... "&" ... "==" ... "eq" ... "!=" ... "ne" ... "<" ... "lt" ...
">"
> ... "gt" ... "<=" ... "le" ... ">=" ... "ge" ... "+" ... "-" ... "*"
...
> "/" ... "div" ... "%" ... "mod" ...
> 
> Thanks
> Derek
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message