File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Doubt in HFSJ Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Doubt in HFSJ" Watch "Doubt in HFSJ" New topic

Doubt in HFSJ

Shivakanth Thyagarajan
Ranch Hand

Joined: Mar 28, 2005
Posts: 41
There is a question on page 336 ( mock exam) of HFSJ

<$@ page isELIgnored="true"%>
What is the effect( Choose all that apply ).

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 of 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.
D) The JSP containing this directive should NOT have any Expression
Language code evaluated by the JSP container.
E) This page directive will only turn off EL evaluating if the DD declares
a <el-ignored>true</el-ignored> element with a URL pattern that
includes this JSP.

I chose answers D and E.

Answer: E.

I want to know why D is invalid. Isn't it true by choosing the isELIgnored="true" i have asked the container to ignore all EL code for the particular JSP page.

Please respond.

Christophe Verré

Joined: Nov 24, 2005
Posts: 14688

The answer is in the Errata

Please correct your book.

[My Blog]
All roads lead to JavaRanch
I agree. Here's the link:
subject: Doubt in HFSJ
It's not a secret anymore!