Help coderanch get a
new server
by contributing to the fundraiser
  • 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

Disabling EL

 
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi there...
Here is what I understood from HFSJ book and correct me if I am wrong:
"The 'isElIgnored' attribute of the 'page' directive is meaningful, if and only if, the 'el-ignored' element of the DD is sepecifed"

In otherwords, can we use 'isELIgnored' without specifing the default behavior in the DD, or is 'isELIgnored' only used to override the default behavior and must be used in conjunction with the DD element?

thanks in advance
hatim
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

"The 'isElIgnored' attribute of the 'page' directive is meaningful, if and only if, the 'el-ignored' element of the DD is sepecifed"


No. They can be used independently. Using isElIgnored will override the value set in the deployment descriptor.
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Below are the possible scenarios for EL evaluation by container....

1. Not in JSP and web.xml:

By default in a JSP and web.xml, if you do not specify the isELIgnored attribute for page directive and <el-ignored> tag respectively, it will be considered as isELIgnored=false i.e. the EL tags are evaluated in JSP

2. Specified in web.xml and not specified in JSP:

In this case the value specified for <el-ignored> is considered.


3. Specified in JSP and Web.xml or Specified in JSP and not in web.xml:

In either case the value for isELIgnored attribute for page directive will be considered when the page is translated by the container.


To answer your question
1.whether we need to use isELIgnored only to override the default behavior of what is specified in web.xml.....
Ans: Yes, but provided you need to verify the <url-pattern> also.

2. To be used in conjunction with web.xml
Ans: Not required.
 
hatim osman
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi..
thank you very much guys, the matter is very clear to me now.

Hatim
 
Can you smell this for me? I think this tiny ad smells like blueberry pie!
We need your help - Coderanch server fundraiser
https://coderanch.com/t/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic