• 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

JSP2.0 Expression Language web.xml setting

 
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm using JSP2.0 EL with tomcat 5 version. Also I made the following change in web.xml. But EL is not working. I tried with both global web.xml (conf/web.xml) and local web.xml (webapps/ROOT/web.xml), but EL is not working. Should I do any more changes in my web.xml? Pl help.
web.xml
-------
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee web-app_2_4.xsd"
version="2.4">

Also included the following directive in jsp file. But it's giving error
"org.apache.jasper.JasperException: /el/scoped-vars.jsp(9,0) Page directive has invalid attribute: isELEnabled"

jsp
---
<%@page isELEnabled="true"%>
 
author
Posts: 3252
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If that's your entire web.xml it's incomplete. And the compiler is right - there is no isELEnabled directive, only an isELIgnored directive which you can set to false. Are you using material that predates the final JSP 2.0 spec? There used to be an isELEnabled in early versions of the spec.

- Peter
[ August 05, 2004: Message edited by: Peter den Haan ]
 
Sree Nivas
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thans a lot. It's working now. I was using Marty's coreservlets.com pdfs for help. In that it mentioned isELEnabled directive. I changed it to isELIgnored=false and working fine. Thanks once again.

regards
Sreenivas
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic