• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

isELIgnored="false"

 
Ra Carter
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have this in web.xml



which shouldn't be necessary anyway because EL is enabled by default? the scripting-invalid should disable scriptlets, not EL, correct?

regardles, with or without that jsp-config node in my web.xml it looks like EL does not work unless i explicitly set isELIgnored="false" in the page directive in each individual jsp page. Is there a way to avoid that? why doesn't the jsp-config node in web.xml work the way i expect?
 
Vassili Vladimir
Ranch Hand
Posts: 1585
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Yeah sure there's a way, you have to tell the container that you are using the Servlets 2.4 spec. by adding this in your DD :



Best of luck ...
[ July 07, 2007: Message edited by: Bear Bibeault ]
 
Deepak Bala
Bartender
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which container are you using ? Yes EL should be enabled by default. The flag in the DD or the page directive will also trigger EL support. The one in the DD is for all JSPs and the one in the JSP is for that particular JSP only.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64721
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Vassili Vladimir is correct. Whether the EL is enabled or not depends upon how you declare the web application. Declared as a 2.3 app it will be disabled, declared as a 2.4 app it will be enabled. This is covered in more detail in the JSP FAQ.

Extra goo in the deployment descriptor and on the pages is best avoided.
 
Ra Carter
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
my web.xml starts with this:

 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64721
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you using Tomcat 6?
 
Ra Carter
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
no, i am using tomcat 5.5
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64721
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tomcat 5.5 does not support Servlets 2.5. Modify your deployment descriptor to use Servelts 2.4.
 
Ra Carter
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
switching the DD to use servlets 2.4 solved the problem. thank you.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic