In the explanation, in the last line:
you should call: this.getServletConfig().getServletContext()
Or you should just call this.getServletContext() directly.
About Question enthuware.jwpv6.2.678 :
Moderator: admin
-
- Posts: 9
- Joined: Wed Jul 12, 2017 10:51 am
- Contact:
-
- Site Admin
- Posts: 10326
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.jwpv6.2.678 :
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.
-Paul.
If you like our products and services, please help us by posting your review here.
Who is online
Users browsing this forum: No registered users and 2 guests