GeeCON Prague 2014*
The moose likes JSP and the fly likes isELIgnored= Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » JSP
Bookmark "isELIgnored="false"" Watch "isELIgnored="false"" New topic
Author

isELIgnored="false"

Ra Carter
Ranch Hand

Joined: Jul 30, 2005
Posts: 96
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

Joined: Mar 08, 2007
Posts: 1585
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 ]

Vassili ...
SCJP 5.0, SCWCD 1.4, SCJA 1.0
Deepak Bala
Bartender

Joined: Feb 24, 2006
Posts: 6661
    
    5

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.


SCJP 6 articles - SCJP 5/6 mock exams - More SCJP Mocks
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61298
    
  66

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Ra Carter
Ranch Hand

Joined: Jul 30, 2005
Posts: 96
my web.xml starts with this:

Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61298
    
  66

Are you using Tomcat 6?
Ra Carter
Ranch Hand

Joined: Jul 30, 2005
Posts: 96
no, i am using tomcat 5.5
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61298
    
  66

Tomcat 5.5 does not support Servlets 2.5. Modify your deployment descriptor to use Servelts 2.4.
Ra Carter
Ranch Hand

Joined: Jul 30, 2005
Posts: 96
switching the DD to use servlets 2.4 solved the problem. thank you.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: isELIgnored="false"