Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

is it required to set el-ignored to true in DD?

 
Gowher Naik
Ranch Hand
Posts: 643
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
in any jsp page if we use
<%@ page isELIgnored="true" %>
Then it is required that for above jsp page el-ignored should be true in DD.
i.e
<el-ignored>true</el-ignored>
That means if i will not set el-ignored in DD for above page then
EL will be processed.

Please correct me if i am wrong.
 
KRK Gowda
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Directive attributes have precedence over DD tags. so, if you have attribute isELIignored="true" in your jsp, any EL expressions in your jsp will be treated as html text.
 
Arvind Giri
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If we use <%@ page isELIgnored="true" %>, Then EL will not be evaluated. Container will not look into DD what we have specified there, If it finds this directive in page.

i.e. this page directive take precedence over DD declarations.
 
Gowher Naik
Ranch Hand
Posts: 643
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please consider this question In HFS&JSP pno-:336
Qno 6
<%@ page isELIgnored="true" %>
Ans-: This page directive will only turn off EL evaluation if the DD declares <el-ignored>true</el-ignored> element with a URL pattern that includes this page.

What does above specifies?

Thanks
 
Arvind Giri
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Refer to http://www.coderanch.com/t/173446/java-Web-Component-SCWCD/certification/page-isELIgnored-true
 
Gowher Naik
Ranch Hand
Posts: 643
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That means ans for Above question is D.
Thanks
 
Niranjan Deshpande
Ranch Hand
Posts: 1277
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
refer this thread
 
Johan Pelgrim
Ranch Hand
Posts: 105
Android Java Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you think about it...

The DD setting (el-ignored) is an application setting that can be taken into consideration when processing JSP files for a certain url-pattern (e.g. *.jsp). The page directive attribute isELIgnored can overrule this DD setting for a single page.

If for example you have the following jsp-config configuration in your DD



And you change the DD el-ignored and isELIgnored values accordingly:


Another table, telling the same story



Hope that helps
[ November 15, 2006: Message edited by: Johan Pelgrim ]
 
Celinio Fernandes
Ranch Hand
Posts: 549
Eclipse IDE Google Web Toolkit Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks, that's crystal clear for me now.
Makes sense.
 
Niranjan Deshpande
Ranch Hand
Posts: 1277
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In a nutshell, Johan Pelgrim's 2nd table can be put as -

1.unspecified + unspecified = false (EL evalated) if >= 2.4 web.xml
true (EL ignored) if 2.3 <= web.xml
2.boolean + unspecified = boolean
3.boolean + boolean = precedence order

confirmed ???
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic