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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to