Web tier: servlets, JSP, Web frameworks: How to get the complete URL of the Servlet Context
- Posted by: Nestor Boscan
- Posted on: October 27 2005 13:50 EDT
How can I get the complete URL of the Servlet Context. I mean if I deploy the EAR file in /webapp/ how can I get http://server:port/webapp/.
- How to get the complete URL of the Servlet Context by Yuval Zukerman on October 28 2005 14:36 EDT
How about HttpServletRequest's getRequestURL() method?
Thanks for the reply. I'm looking for the context path not the absolute path of the file.