• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

EL in Tomcat 5.0.25

 
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author
Posts: 3252
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
yes it works if i add

<%@ page isELIgnored ="false" %>


thanks a lot guys..
 
reply
    Bookmark Topic Watch Topic
  • New Topic