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...

HttpServletRequest request = (HttpServletRequest) pageContext.getRequest();
String path = request.getPathInfo(); // aways null?

Is there a way to do this inside the tag, or will I have to pass the 
path in from the JSP?

Cheers
Chris


Reply via email to