Win a copy of TensorFlow 2.0 in Action this week in the Artificial Intelligence and Machine Learning forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

A question about EL

 
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HFSJ page 336 Question6
It says:
<%@page isElIgnored="true"%>

Option D
The JSP containing this directive should not have any Expresion Language code evaluated by the JSP container.

Why this option is wrong?
 
Ranch Hand
Posts: 1855
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Avseq,

yes you are right one could think about it this way, but when you review page 320 in HFSJ, one can find that the only intention of



is to switch off EL-looking things or better to let the Container ignore reading EL-looking thinks in a JSP file.

So Answer D does not hold. On the other hand the correct Answer E says:


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



Honestly , to my opinion this answer also does not hold because it has nothing to do with the question except the fact that it wants to switch off EL through a DD . Answer E let someone think that the page directive and the DD are related to each other which is not in sync with the explanation on HFSJ p. 320 where it says:


If you want EL-looking things in your JSP to be ignored, you have to say so explicitly, either through a page directive or a DD element.





Regards,
Darya
[ September 04, 2005: Message edited by: Darya Akbari ]
 
avseq anthoy
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your detail reply.I understand.
 
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
the answer to the question 6 in page 336 is 'D' and not 'E' ,please check the HFSJ errata.
 
Darya Akbari
Ranch Hand
Posts: 1855
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Narendra,

you are right. And I thought I went through the errata list and corrected all erratas. Seems that I forgot that one .

Answer D is definitely much nicer than Answer E and is in sync with p. 320:


... if you happened to have template text (plain old HTML or text) in your JSP that included something that looked like EL (${something}) ...



Sorry for any confusion and thanks Narendra.

Regards,
Darya
[ September 05, 2005: Message edited by: Darya Akbari ]
 
What's wrong? Where are you going? Stop! Read this tiny ad:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic