Anthony Diodato wrote:
>
> request.getHeader("REFERER") will return the url you are looking for.
>
> Tony Diodato

No, but request.getRequestURI() does. The Referer header is only set
if the user clicked on a link to get to the page, and contains the
URL of the *referring* page, not the target page.

Hans

> -----Original Message-----
> From: King Maurice [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, December 06, 2001 4:24 PM
> To: [EMAIL PROTECTED]
> Subject: Detect the url
>
> Does someone know the implementation or lead me in the direction....
> of getting the url of what the user inputed to get your website.
>
> For example
> If I type "mydomain.com/school/" or "mydomain.com/home/"
>
> How can I get the url string that was inputted to get to the site..
>
> Get me?
>
> Maurice``````
>
> ===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.com
>
> Visit our website at http://www.p21.com/visit
> The information in this e-mail is confidential and may contain legally
> privileged information.  It is intended solely for the person or entity to
> which it is addressed.  Access to this e-mail by anyone else is
> unauthorized. If you are not the intended recipient, any disclosure,
> copying, distribution, action taken, or action omitted to be taken in
> reliance on it, is prohibited and may be unlawful.  If you received this
> e-mail in error, please contact the sender and delete the material from any
> computer.
>
> ===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.com

--
Hans Bergsten           [EMAIL PROTECTED]
Gefion Software         http://www.gefionsoftware.com
Author of JavaServer Pages (O'Reilly), http://TheJSPBook.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to