• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HFSJ - Error in Exercise?

 
Tridib Samanta
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I found the following question in the excercise of chapter 7.

Q.6
Given:
<%@ page isELIgnored="true" %>

What is the eefect? (Choose all that apply.)
A. Nothing, this page directive is NOT defined.

B. The directive turns off the evalution of Expresiion Language code by the JSP container in all of the web application's JSPs.

C. The JSP containing this directive should be treated by the JSP container as well-formed XML file.

D. The JSP containing this directive should NOT have any Expression Language code evaluated by the JSP container.

E. This page directive will only turn off EL evaluation if DD declares a <el-ignored>true</el-ignored> elemnt with a URL pattern that includes this JSP.

Ans: E


But I think the answer should be D.
Am I right?
[ March 07, 2007: Message edited by: Tridib Samanta ]
 
gar tek
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, I think you are correct
 
Joe Harry
Ranch Hand
Posts: 10124
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
EL is enabled by default and you have to explicitly set in the DD use a directive to disable it. So even I feel answer D is correct!
 
Xudong Wang
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I choose D
 
Seenikkannan krishnasamy
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What a coincidence..i thought of posting this query today..
me too chosen D when i worked out on this chapters mock questions..

Thank You All .. i am taken D as an answer..

Cheers,
Seenikkannan.K
 
achayya matta
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i would also choose D
 
Promod kumar
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I checked the errata and did not find this error. Is this really an error and if it is how can it be added to the errata so others won't have to go thru the same issue.
 
madhav changala
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi I would like to you inform one thing.. from which part EL ignored will decide.. whether it is from web.xml or @page directive IsElIgnored attribute..

If both sets same meaning then there is no problem..

If both differ..

then...

Could any one come up with spec..?

ThanksInadvance

madhav
 
Shrenik Sakriya
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The EL ignorance declaration in web.xml would apply to complete web app where as the EL declaration in jsp just applies to that particular jsp page.

If you specify "true" in web.xml to ignore el & you specify false in all the jsps to isELIgnored then the jsp declaration would take precedence over the web.xml declaration & all the ELs in all the JSPs would be evaluated.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic