request.getRequestURL().toString();
getRequestURL is a StringBuffer of the full URL.
Daniel Blumenthal wrote:
> I'm trying to do what should be a fairly easy thing, but I'm really tearing
> my hair out over this...
> All I want is to be able to get the full URL (including scheme, queryString,
> etc.). Right now, I'm trying something like:
>
> <%
> out.write(request.getScheme() + ":/" +
> request.getRequestURI().replace("jsp","do") +
> (request.getQueryString().length() > 0 ? "?" + request.getQueryString() :
> ""));
> %>
>
> It feels like this should be a simple, single call. Any takers?
>
> Thanks!
> Daniel
>
---------------------------------------------------------------------
To start a new topic, e-mail: [email protected]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]