About Question enthuware.jwpv6.2.678 :

Moderator: admin

Post Reply
Posts: 9
Joined: Wed Jul 12, 2017 10:51 am

About Question enthuware.jwpv6.2.678 :

Post by RumiJal »

In the explanation, in the last line:
you should call: this.getServletConfig().getServletContext()

Or you should just call this.getServletContext() directly.

Site Admin
Posts: 9791
Joined: Fri Sep 10, 2010 9:26 pm

Re: About Question enthuware.jwpv6.2.678 :

Post by admin »

Yes, you could do that as well because HttpServlet (which is a parent class for all translated JSP pages) implements javax.servlet.ServletConfig, which has getServletContext method.

If you like our products and services, please help us by posting your review here.

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 1 guest