You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Keith Hankin <ke...@addr.com> on 2004/06/07 08:22:51 UTC

EL not processed by default with Tomcat 5.0.19

Here's my page:

<html><body>
<% pageContext.getRequest().setAttribute("name", "hello world"); %>
Name: ${name}
</body></html>

This prints "Name: ${name}". According to the JSP spec, with Servlet
containers supporting 2.4, EL should be processed by default, but it isn't
being done. So I added the following to my web.xml:

    <jsp-config>
        <url-pattern>*.jsp</url-pattern>
        <el-ignored>false</el-ignored>
   </jsp-config>

This seems to be ignored, as I am still getting the same incorrect output.
Only if I add the following at the top of each page, does it work: <%@ page
isELIgnored="false" %>

Is there any way I can get this to work without having to have this
declaration at the top of every page?



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org