File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Doubt in isELIgnored" Watch "Doubt in isELIgnored" New topic
Author

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: 950
Hi,

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

Thanks


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 .

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

regards
-santosh
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
Hi,
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.

Thanks!


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
Greenhorn

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 later...so 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: http://aspose.com/file-tools
 
subject: Doubt in isELIgnored
 
Similar Threads
Doubt in HFS in chapter 6
Qn on IsELIgnored="true" .
isELIgnored
These condition is not mentioned at page no. 322 in HFSJ.
EL not working