Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Doubt in isELIgnored

 
Viji Elango
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<%@ 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
Posts: 951
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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

Thanks
 
Viji Elango
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 136
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks guys for your immediate response.
 
Sandeep Chhabra
Ranch Hand
Posts: 340
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
Srikanth shetty Nukala
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic