Shared Tutorials
Tutorials Shared by the Internet Community
Advertisements
| Top Tutorials | New Tutorials | Submit | Login | Register |
Tutorial Basic Detail
How to get ServletContext in JSP Servlet from Session
Step by Step Java tutorial to get get ServletContext in JSP Servlet from Session. Since You can not get ServletContext object from request directly unhttp://javarevisited.blogspot.com/2012/03/how-to-get-servletcontext-in-servlet.html
Total Hits: 3834
Total Votes: 14 votes
Average Rating: 3.57 out of 5
Category: JAVA/J2EE
Description:
Step by Step Java tutorial to get get ServletContext in JSP Servlet from Session. Since You can not get ServletContext object from request directly until you are using Servlet 3.0 API. In order to get ServletContext from request you need to first get HttpSession and than ServletContext from sessionRating Detail
| Stars | Percentage | Total Vote |
|---|---|---|
![]() |
![]() ![]() 21.43% |
3 |
![]() ![]() |
![]() ![]() 14.29% |
2 |
![]() ![]() ![]() |
![]() ![]() 14.29% |
2 |
![]() ![]() ![]() ![]() |
![]() ![]() 14.29% |
2 |
![]() ![]() ![]() ![]() ![]() |
![]() ![]() 21.43% |
3 |





21.43%

14.29%

14.29%

14.29%

21.43%