tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Keith Hankin" <kei...@addr.com>
Subject EL not processed by default with Tomcat 5.0.19
Date Mon, 07 Jun 2004 06:22:51 GMT
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


Mime
View raw message