Problem with EL in JSP
Hi,
I created this simple JSP to experiment with EL:
<%@ page language="java" errorPage="/view/error/Error.jsp" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="testVar" value="9999"/>
<html>
<head>
<title>JSP EL Test</title>
</head>
<body>
<c:out value="${testVar}" default="00000"/>
</body>
</html>
I added this JSP to an existing web application, and added the jstl.jar and standard.jar files to the app's WEB-INF/lib directory. When I ran the JSP the output was:
${testVar}
I moved the JSP to the jsp-examples application that is installed with Tomcat 5.5.20 (in the jsp-examples/jsp2/el directory) and ran it from there and the output was:
9999
Can anyone explain this behavior? It seems that the jsp-examples application has some setting that I'm missing, but I can't find it.
Any help you can offer is greatly appreciated.
Thanks,
Tom
|