• 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

Head First Servlets & JSP ...

 
Ranch Hand
Posts: 163
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,..

Firstly this is a great book
I know that many have this book...

I have a question regarding Question 6, page 330(mock exam) and in the answers it said 'E' as correct answer but i thought 'D' was the correct answer.

Any explaination(s)??
Thanks for your help
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Jack,
Not all of us have read the book.
Maybe you could share the question and possible answers with us?
 
Jack Daniel
Ranch Hand
Posts: 163
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
OK... i guess this is reg JSP 2.0 specs.

Given:



what is the effect?

A. Nothing, this page directive is not defined

B. The directive turns off the evaluation of Expression Language code by the JSP container in all the web application's JSP's

C. The JSP containing this directive should be treated by the JSP container as a well formed XML file (hehehe.. funny )

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

E. 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.

Ben, ohh! i have leaked the answer before, in my first post

plz give your opinion(s)..
Thanks

PS: hope there are NO typos
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
JSP 3.3.2 (specifically Table JSP.3-1 EL Evaluation Settings for JSP Pages)
States that if that directive is set to true, it doesn't matter what's in the deployment descriptor, so I would say you are right.


Whenever you're in doubt, check the specs (the link is in my signature).
 
Jack Daniel
Ranch Hand
Posts: 163
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Ben

I never had the habit of looking at specifications.. but anyway better late than never.

So, i am correct

maybe i'll call up kathy and talk to her about this..
juss kiddin..
 
pie. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic