Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's wrong with this JSF EL statement?

Tags:

java

jsf

el

Code

<c:if test="#{attr1 && !attr2 && (empty attr3)}">

Error returned

The entity name must immediately follow the '&' in the entity reference.

I simply need to check if attribute 1 is true, attribute 2 is false and attribute 3 is not set. Tried without parentheses on first chance, same result.

Thank you

like image 262
usr-local-ΕΨΗΕΛΩΝ Avatar asked Dec 07 '22 22:12

usr-local-ΕΨΗΕΛΩΝ


1 Answers

It expects entity name, like &amp;. You can use &amp; &amp; or replace it with and for better readability.

like image 50
n0weak Avatar answered Dec 10 '22 12:12

n0weak