Re: getting the full URL

2006-11-01 Thread Christopher Schultz
Martin, Martin Gainty wrote: > Dan- > iterate thru all of the header variables and print the header variable.. > <% > Enumeration headerNames = request.getHeaderNames(); > while(headerNames.hasMoreElements()) > { > String headerName = (String)headerNames.nextElement(); > out.print("" + headerName

Re: getting the full URL

2006-11-01 Thread Martin Gainty
communication in error and that any review, disclosure, dissemination, distribution or copying of it or its contents - Original Message - From: "Daniel Blumenthal" <[EMAIL PROTECTED]> To: "'Tomcat Users List'" Sent: Wednesday, November 01, 2006 8:37 AM

Re: getting the full URL

2006-11-01 Thread Pid
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, >

getting the full URL

2006-11-01 Thread Daniel Blumenthal
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