• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

HFSJ - Error in Exercise?

 
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes, I think you are correct
 
Ranch Hand
Posts: 10198
3
Mac PPC Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I choose D
 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i would also choose D
 
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic