Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Head First Servlets & JSP ..." Watch "Head First Servlets & JSP ..." New topic

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

Joined: Dec 11, 2004
Posts: 13410

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.


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

PS: hope there are NO typos
Ben Souther

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:
subject: Head First Servlets & JSP ...
Similar Threads
HFEJB Question
chapter 10 question number 11 k&b book (on jar files)
Which of the following statements are correct regarding tag libraries?
body-content version conflict !!! (***doubt)
Head First Servlets and JSP:SCWCD Question