• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Doubt in isELIgnored

 
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 951
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 136
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks guys for your immediate response.
 
Ranch Hand
Posts: 340
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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..
 
Ruth Stout was famous for gardening naked. Just like this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic