I have defined an expression as ${error} in my jsp page , and when i am printing the value of the same using <c:out value='${error}' /> , the output is ${error}. Whereas the expression is not being evaluated.
I have included the jstl-1.2-api and jstl1.2-impl jar files in my lib directory , and also included the taglib <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> in my JSP.
Can anybody please help.
You need to ensure that your
web.xmlis declared conform at least Servlet 2.5 spec and that your container also actually supports this. For example, Tomcat 6.x or newer.You also need to ensure that the
/WEB-INF/libof the WAR is not cluttered with servletcontainer-specific libraries of an older version, such asjsp-api.jar,el-api.jar, etcetera.