• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Head First Servlets & JSP ...

 
Jack Daniel
Ranch Hand
Posts: 163
  • Mark post as helpful
  • send pies
  • 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
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • 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
  • 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 Redhat VI Editor
  • Mark post as helpful
  • send pies
  • 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
  • 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..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic