Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Getting the ServletContext from a HttpServletRequest object

843841Jun 18 2003 — edited Jun 18 2003
I was looking at some examples using the Request Dispatcher to include JSP pages in servlets and I noticed in the code that I looked at, the example was using the ServletContext to get the Request Dispatcher. in my doGet() method does anyone know how to get the ServletContext off of the request or response objects?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 16 2003
Added on Jun 18 2003
2 comments
530 views