pathInfo in a custom tag

2001-07-19 Thread Chris Callaghan
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...

Re: pathInfo in a custom tag

2001-07-19 Thread Jeff Hubbach
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

Re: pathInfo in a custom tag

2001-07-19 Thread Chris Callaghan
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