Page 1 of 1

About Question enthuware.jwpv6.2.678 :

Posted: Thu Jul 13, 2017 10:14 am
by RumiJal
In the explanation, in the last line:
you should call: this.getServletConfig().getServletContext()

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

Re: About Question enthuware.jwpv6.2.678 :

Posted: Fri Jul 14, 2017 12:09 am
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.

-Paul.