commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vincenz Braun" ...@evelox.de>
Subject [JEXL] if statements, assignments
Date Fri, 21 Feb 2003 16:46:46 GMT
Hello,

i searched the jexl parser and documentation (sources :) for proper use
of if statements and variable assignments.

I tried:

${if (myDate != null) formatter.format(myDate) else ''}
${if (myDate != null) formatter.format(myDate); else '';}

${myVar = 'TestString'}
${myVar = 'TestString';}

All resulting in invalid expression exceptions:

What is wrong in my code?

Thanks in advance,
Vincenz


Mime
View raw message