This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JSP2.0 Expression Language web.xml setting  RSS feed

 
Sree Nivas
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
  • 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"%>
 
Peter den Haan
author
Ranch Hand
Posts: 3252
  • Mark post as helpful
  • send pies
  • 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
  • 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
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!