It's not a secret anymore!
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Doubt in isELIgnored Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Doubt in isELIgnored" Watch "Doubt in isELIgnored" New topic

Doubt in isELIgnored

Viji Elango
Ranch Hand

Joined: Apr 25, 2006
Posts: 36
<%@ page isELIgnored="true" %>

What is the effect

1. The jsp containing this directive should not have any EL code evaluated by jsp aontainer.
2. This page directive will only turn off EL evaluation if the DD declares a <el-ignored> true </el-ignored> element with a url pattern that includes this jsp.

Which is the correct answer?

Is it only 1 or only 2 or both 1 & 2.

Please clarify.
Narendra Dhande
Ranch Hand

Joined: Dec 04, 2004
Posts: 951

Only First Statement is true. It turn off EL in-respective of any setting in the web.xml.


Narendra Dhande
SCJP 1.4,SCWCD 1.4, SCBCD 5.0, SCDJWS 5.0, SCEA 5.0
Viji Elango
Ranch Hand

Joined: Apr 25, 2006
Posts: 36
But in HFSJ Chapter 7 Mock Exam, it says only 2 is correct. Is that a printing mistake in the book?
singh santosh
Ranch Hand

Joined: Jan 13, 2006
Posts: 136
only 1 is correct ,if HFSJ mentioned 2 then it must be wrong .

<%@ page isELIgnored="true" %> always overrides
<el-ignored> true </el-ignored> configured in DD

Viji Elango
Ranch Hand

Joined: Apr 25, 2006
Posts: 36
Thanks guys for your immediate response.
Sandeep Chhabra
Ranch Hand

Joined: Aug 28, 2005
Posts: 340
Can anyone also throw some light on isScriptingEnabled.
I tried to use it in my jsp as follows:
<%@ page isScriptingEnabled="false"%>

But my container keeps on throwing error :
org.apache.jasper.JasperException: /disableScriptlet.jsp(2,0) Page directive has invalid attribute: isScriptingEnabled

Can anyone kindly clarify:
- Why I am getting this error?
- Is it necessary to put <scripting-invalid>false</scripting-invalid> in DD.


Regards<br />Sandy<br />[SCJP 5.0 - 75%]<br />[SCWCD 1.4 - 85%]<br />------------------<br />Tiger, Tiger burning bright,<br />Like a geek who works all night,<br />What new-fangled bit or byte,<br />Could ease the hacker's weary plight?
Srikanth shetty Nukala

Joined: Apr 07, 2006
Posts: 20
yes i read somewhere tht isScriptingEnabled was included in some draft version of jsp spec but it was removed this attribute cease to exist.

only DD tag scripting-invalid is valid..

Regards,<br />SCJA<br />SCJP 1.4<br />SCWCD 1.4<br />SCBCD or SCEA - coming soon!
I agree. Here's the link:
subject: Doubt in isELIgnored
It's not a secret anymore!