Hi, A = request.getRequestURL().toString() If(request.getQueryString() != null) { A += "?"; A += request.getQueryString(); }
Lazy half-assed code, but there it is. BTW, there are no directories in a URL: it'd be worth your time to read the java.net.URL class JavaDoc description of what goes into a URL. Yoav Shapira Millennium Research Informatics >-----Original Message----- >From: rlipi [mailto:[EMAIL PROTECTED] >Sent: Wednesday, May 12, 2004 1:54 AM >To: 'Tomcat Users List' >Subject: full URL > >Hi, >is it possible to (in servlet or JSP) gain full URL string? It means >protocol, server, "directory", parameters, user identification. > >There are methods in the servlet that return parts of the URL. But I >didn't find method that returns full URL string. > >Than you, >Lipi > > > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]