• 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 chapter 7 Question No:6

 
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
HFSJ chapter 7 using JSP Exm question 6 :

<%@ page isELIgnored="true" %> What is the effect ?

Option D: The JSP containing this diective should NOT have any Expression Lamguage code evaluated by the JSP container.

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

Books sayd Option E is correct . what I feel is Option D is correct? Could anyone clarify this?
 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Your JSP can have EL but the container consider it like a plain text if <%@ page isELIgnored="true" %>

Look the option D. It says your page should not have EL so its wrong one.
E is the correct one.
 
Rohit Sajan
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Fine Option D is wrong. Then how is this option E is correct? It says it will turn of EL evaluation ONLY if declared in DD. That's also worng right? Just because of that 'ONLY' in taht statement
 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm also agree with you that's is wrong because of the word ONLY. In the page 320:The page directive takes priority over the DD setting.so it isn't necessary to specify the <el-ignored> in the DD file.
 
Ranch Hand
Posts: 572
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
D is correct one
 
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Official answer is D on my book.
 
Ranch Hand
Posts: 324
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Saju Pappachen:
HFSJ chapter 7 using JSP Exm question 6 :

<%@ page isELIgnored="true" %> What is the effect ?

Option D: The JSP containing this diective should NOT have any Expression Lamguage code evaluated by the JSP container.



In "should NOT have any Expression Lamguage code evaluated by the JSP container" if we focus on evaluated by JSP container then D seems right
 
reply
    Bookmark Topic Watch Topic
  • New Topic