• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Disabling EL

 
hatim osman
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
  • 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
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • 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.
 
Sravan Kumar Kollapudi
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
Hi..
thank you very much guys, the matter is very clear to me now.

Hatim
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic