Hi,

I installed Tomcat 8.0.27 last weekend and now using it I do get JSP compilation exceptions.

This is an example causing such an exception:
<c:if test="${! (empty Active || Active == \"on\")}">
        <c:set var="active" scope="page" value="" />
</c:if>
(Active is a String and c: means jstl/core)

If I change it to this
<c:if test="${! (empty Active || Active == 'on')}">
or
<c:if test="${! (empty Active || Active == on)}">

Then no exception occurs anymore.

I expected
<c:if test="${! (empty Active || Active == \"on\")}"> and
<c:if test="${! (empty Active || Active == 'on')}">
being proper code and
<c:if test="${! (empty Active || Active == on)}">
faulty coding.

Has this to do with the change handling  \${ vs \$ escaping in JSP and EL?

Regards,
Harm-Jan Zwinderman


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to