Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Qn on IsELIgnored="true" .

 
Praveen Kumar
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Suppose we have like these

<%@ IsELIgnored="true" %>

1. The JSP Containing this directive Should Not have any Expresion
Language code evaluated by the JSP Container.
2. This page directive will only turn off the EL evaluation if DDdeclares
a <el-ignored>true</el-ignored> element with a URL pattern that includes
this JSP element.

According HFSJ, the answer is 2. But my answer is 1 .


Could any help me in this regard.

Waiting for your reply.


Thanks
Praveen
 
Rufus Addis
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's worth stating which edition and page of the book the question relates to!

I believe this was an error in early prints of edition 1, and was corrected in later versions.

The second option is AFAIK incorrect.

Rufus.
 
Ranil Liyana Arachchige
Ranch Hand
Posts: 71
Hibernate Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<%@ IsELIgnored="true" %>

1. The JSP Containing this directive Should Not have any Expresion
Language code evaluated by the JSP Container.
2. This page directive will only turn off the EL evaluation if DDdeclares
a <el-ignored>true</el-ignored> element with a URL pattern that includes
this JSP element.

In the first answer what it says is that the Page should not have , or should not contain EL expressions.which is not right , the JSP page could contain EL like expressions , but that would not be evaluated by the JSP container. If the first answer was "The JSP containing this directive could have any EL Expressions but those would not be evaluated" then we could select the first one as an answer to the question. Hence the answer must be second one. What it says is that setting isELIgnored would turn it off which is correct

Hoe that helps too

Regards,
Ranil
 
Rufus Addis
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ranil, I interpret the answers differently to you.

The first statement lacks a comma so I read as synonymous to:

The JSP Container Should Not evaluate any expression language that JSP page containing this directive has.

The second statement I interpret as false as it includes "will only" with respect to the dd directive. My understanding is that regardless of the DD setting the <%@ IsELIgnored="true" %> takes precedence!

Finally I am reasonably sure that in later editions HFSJ changed the answer to this question, though don't have my copy to hand to confirm this!

Rufus.
 
Martin Vician
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


there is no such directive...and the attribute name is wrong as well...

it should have been like this:

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic