Page 1 of 1

About Question enthuware.jwpv6.2.1174 :

Posted: Mon Oct 17, 2011 8:49 am
by ETS User
The question is not clear:
Which of the following classes should a JSP page's servlet class must extend
should or must?

The answer, in my opinion, is also incorrect:
JSP.11.1.1.2 The HttpJspPage Interface
The enforcement of the contract between the JSP container and the JSP page
author is aided by the requirement that the Servlet class corresponding to the JSP
page must implement the javax.servlet.jsp.HttpJspPage interface (or the javax.servlet.
jsp.JspPage interface if the protocol is not HTTP).

Re: About Question enthuware.jwpv6.2.1174 :

Posted: Sat Oct 22, 2011 7:03 am
by admin
The given answer and the explanation is correct. As you quoted, the requirement is that the jsp class must implement HttpJspPage or JspPage interface. There is no requirement for extending any particular class.

Re: About Question enthuware.jwpv6.2.1174 :

Posted: Sun Sep 09, 2012 1:16 pm
by Guest
Please correct the question: must, should? Which one?

Re: About Question enthuware.jwpv6.2.1174 :

Posted: Sun Sep 09, 2012 3:07 pm
by admin
The question statement says "must" and so the answer is "None of these" because a JSP page is not required to extend any of these classes mentioned in other options.

HTH,
Paul.

Re: About Question enthuware.jwpv6.2.1174 :

Posted: Sun Sep 09, 2012 5:13 pm
by Guest
the question states: "Which of the following classes should a JSP page's servlet class must extend?"

Maybe I have old questions DB - I will update it tomorrow for any case to check if the question is not different.

Regards