Page 1 of 1

About Question enthuware.jwpv6.2.1163 :

Posted: Mon Nov 11, 2013 1:37 pm
by mtmmjava
Isn't "loading of the servlet class" part of the request phase (first time only, same as instantiation) ?

Re: About Question enthuware.jwpv6.2.1163 :

Posted: Mon Nov 11, 2013 2:08 pm
by admin
The specification doesn't specify exactly when "loading of the servlet class" happens. So it may happen in translation time as well.

But it clearly specifies that instantiation happens at request time:
The JSP page is translated to create a servlet class, the JSP page
implementation class, that is instantiated at request time.
HTH,
Paul.

Re: About Question enthuware.jwpv6.2.1163 :

Posted: Mon Nov 11, 2013 3:25 pm
by mtmmjava
Right, I agree about instantiation and wasn't my attempt to argue against that.
So, why "loading of a servlet class" should be considered as a correct alternative then? I think this question has only one correct alternative.

Re: About Question enthuware.jwpv6.2.1163 :

Posted: Mon Nov 11, 2013 4:47 pm
by admin
As I mentioned before, the specification doesn't specify exactly when "loading of the servlet class" happens. so it may happen in translation time as well.

That is why it is a correct option.

HTH,
Paul.