Cannot get JSTL core out tag to work, outputs actual expression!!!
I have an issue with the core JSTL library, which means whenever I want to write something into the JSP page, instead of writing the value of the expression as expected, it writes out the actual expression i.e.
<c:out value="${request.remoteHost}"/> -- Results In -- > ${request.remoteHost}
I have setup everything correctly i.e. added the c.tld, modified the web.xml etc. When I modify the tag so it is illegal (i.e. value="XXX" to v="XXX"), I get an error saying the attribute is not supported, so to me this shows the JSTL tags have been setup correctly.
I have included the JSP page below. Anyone got any ideas?
<%@page contentType="text/html"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"%>
<html>
<head></head>
<body>
<!-- Does not work -->
<c:out value="${pageContext.request.remoteHost}"/>
<c:out value="${request.remoteHost}"/>
<c:out value="${request}"/>
<!-- works -->
<%
out.println(pageContext.getRequest().getRemoteHost());
out.println(request.getRemoteHost());
out.println(request);
%>
</body>
</html>

