Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

EL in Tomcat 5.0.25

 
gov kur
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi everybody ..


the link for the Expression Language examples on the tomcat home jsp executes perfectly

but if i copy the source code into my own jsp then the expressions are not evaluated and are printed as it is . can somebody help?
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
be more specified. there are four examples here in EL.

which one are you talking about? or are you gettin problems in all?
wht actually you are gettin?

thanx
 
Peter den Haan
author
Ranch Hand
Posts: 3252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This happens because your web applications still have an oldfashioned Servlet 2.3 deployment descriptor (web.xml), or perhaps no descriptor at all. This will cause the JSP container to use JSP 1.2 compatibility mode, with EL disabled.

You need to write descriptor which uses the Servlet 2.4 schema. See the Tomcat sample webapp for an example. As a quick workaround, add <%@page isELIgnored="false"%> at the top of your page; that will enable EL support on that page.

- Peter
 
gov kur
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes it works if i add

<%@ page isELIgnored ="false" %>


thanks a lot guys..
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!