About Question enthuware.jwpv6.2.1174 :

Moderator: admin

Post Reply
ETS User

About Question enthuware.jwpv6.2.1174 :

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

admin
Site Admin
Posts: 10384
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.jwpv6.2.1174 :

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

Guest

Re: About Question enthuware.jwpv6.2.1174 :

Post by Guest »

Please correct the question: must, should? Which one?

admin
Site Admin
Posts: 10384
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.jwpv6.2.1174 :

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

Guest

Re: About Question enthuware.jwpv6.2.1174 :

Post 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

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest