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 Context Path without an HttpServletRequest object

843840Jul 30 2002 — edited May 29 2008
Hello, thankx in advance for your support !

I'd like to set automatically a constant with the context path upon server initialization, so that other servlet developers can invoke a method and get this constant value when needed.

�Is there any way to obtain the context path from the Servlet Context? Getting it from a request is useless for me.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 26 2008
Added on Jul 30 2002
8 comments
948 views