Craig,
Thanks ! :-) I will update the class with your requests... (Sorry for the
comments...)
However, I tested the tag with both a web app mapped to "/" and also when
mapped to "/app" and did not have any problems with a repeated context
path... My test was in the context of a servlet using a RequestDispatcher
to bring up the JSP, but I believe that this also works when calling the JSP
directly.. Are you sure about getRequestURI() including the context path ?
I will be testing this again...
I hadn't seen the method in your utility class... will check it out !
Cheers,
Luis.
----- Original Message -----
From: "Craig R. McClanahan" <Craig.McClanahan@eng.sun.com>
To: <struts-dev@jakarta.apache.org>
Sent: Monday, September 11, 2000 9:55 PM
Subject: Re: cvs commit: jakarta-struts/web/documentation tags.html
>
> This will duplicate the context path (which is included in the request
URI. Try changing this line to:
>
> buf.append(request.getServletPath());
> if (request.getPathInfo() != null)
> buf.append(request.getPathInfo();
>
> Or, you could just let the servlet API classes to the reconstruction for
you:
>
> StringBuffer uri =
> HttpUtils.getRequestURL(request);
>
> and manipulate that instead.
>
|