Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Getting the context path NOT from the request

 
Michael Remijan
Author
Ranch Hand
Posts: 130
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