About Question enthuware.jwpv6.2.1163 :

Moderator: admin

Post Reply
mtmmjava
Posts: 9
Joined: Mon Nov 04, 2013 7:49 am
Contact:

About Question enthuware.jwpv6.2.1163 :

Post by mtmmjava »

Isn't "loading of the servlet class" part of the request phase (first time only, same as instantiation) ?

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

Re: About Question enthuware.jwpv6.2.1163 :

Post 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.
If you like our products and services, please help us by posting your review here.

mtmmjava
Posts: 9
Joined: Mon Nov 04, 2013 7:49 am
Contact:

Re: About Question enthuware.jwpv6.2.1163 :

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

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

Re: About Question enthuware.jwpv6.2.1163 :

Post 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.
If you like our products and services, please help us by posting your review here.

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests