Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Getting the context path NOT from the request

 
Michael Remijan
Author
Ranch Hand
Posts: 131
7
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic