posted 16 years ago
I am having troubles retrieving the
servlet path in a filter I wrote. Within the doFilter() method I cast the ServletRequest to a HttpServletRequest then call getServletRequest() on it and store what is returned into a
String, but it is only returning the name of the servlet. For example.
http://localhost/contextRoot/foo/bar/servlet.jsp will only return
servlet.jsp instead of
/foo/bar/servlet.jsp
My configurations in my web.xml are correct.
Any ideas?
Jerret Halter<br /> <br /> <blockquote><font size="1" face="Verdana, Arial">quote:</font><hr>If you give someone a program, you will frustrate them for a day; if you teach them how to program, you will frustrate them for a lifetime.<hr></blockquote>