- Posts: 9
- Joined: Wed Jul 12, 2017 10:51 am
In the explanation, in the last line:
you should call: this.getServletConfig().getServletContext()
Or you should just call this.getServletContext() directly.
- Site Admin
- Posts: 9426
- Joined: Fri Sep 10, 2010 9:26 pm
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
Users browsing this forum: No registered users and 1 guest