aspose file tools*
The moose likes Servlets and the fly likes Getting the context path NOT from the request Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Getting the context path NOT from the request" Watch "Getting the context path NOT from the request" New topic
Author

Getting the context path NOT from the request

Michael Remijan
Author
Ranch Hand

Joined: May 29, 2002
Posts: 125
    
    5

there is the method HttpServletRequest.getContextPath() It seems to me this data should be available from somewhere other than the request object. I'd really like to get it out of the ServletContext in my implementation of the ServletContextListener but I don't see it. How else can you get this data?


Java EE Evangelist — Author, EJB 3 in Action 2nd Edition — Java Community Process Member
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

http://www.coderanch.com/t/361361/Servlets/java/webapp-name-configured-Tomcat


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Getting the context path NOT from the request