Hi all,
I'm trying to get the request path for a page from inside a custom tag.
The tag itself extends TagSupport.
I'm getting the ServletRequest object from the pageContext.getRequest()
- this object is an instanceof HttpServletObject, but when I ask it for
pathInfo() I get null...
Chris,
I just wanted to make sure you're checking for the right thing in your
code, and if you are I apologize.
For the following example URL:
http://www.foo.com/FooServlet/testme?hey=you
Assume that FooServlet and FooServlet* are both mapped to FooServlet.
Here are the results of the
Haha, got it...
The url I had was http://localhost/myApp/logon.jsp,
so getPathInfo() is null, but getServletPath() was logon.jsp
Kinda obvious really :)
Cheers
Chris
Jeff Hubbach wrote:
Chris,
I just wanted to make sure you're checking for the right thing in your
code, and if you are I