What is the expected behaviour when testing a non-existing variable in a jsp file
for Java 1.4.2 and Tomcat 5.0?
for example:
<c:when test="${testVariable ne 'test'}">
1
</c:when>
<c:otherwise>
2
</c:otherwise>
will this code display 1, 2 or some kind of exception on the site, given that the testVariable doesn’t exist?
A non existing variable will just be treated as
null.