Thanks Bart -
Yes, I messed up the order of brackets at the end...
I can either blame it on a long day, or just admit I'm a
lazy programmer who misses his syntax checker!
Derek
>>> [EMAIL PROTECTED] 2005/03/03 05:07:32 PM >>>
Hi Derek,
This expression seems good to me, except that you forgot to end it.
You
wrote:
<jx:if test="${bar1 != null && (foo1!= null">
But should be:
<jx:if test="${bar1 != null && (foo1!= null)}">
Mind the ")}" at the end.
HTH,
Bart.
> -----Original Message-----
> From: Derek Hohls [mailto:[EMAIL PROTECTED]
> Sent: Thursday, March 03, 2005 4:06 PM
> To: [email protected]
> 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 && (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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]