File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Head First Servlets & JSP ... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Head First Servlets & JSP ..." Watch "Head First Servlets & JSP ..." New topic
Author

Head First Servlets & JSP ...

Jack Daniel
Ranch Hand

Joined: Jun 15, 2002
Posts: 163
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

Joined: Dec 11, 2004
Posts: 13410

Jack,
Not all of us have read the book.
Maybe you could share the question and possible answers with us?


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Jack Daniel
Ranch Hand

Joined: Jun 15, 2002
Posts: 163
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

Joined: Dec 11, 2004
Posts: 13410

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

Joined: Jun 15, 2002
Posts: 163
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..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Head First Servlets & JSP ...