That doesn't get the JSP or HTML page that actually made the call. I think
the idea is to get the exact page that the call is coming from, so if any
error occurs, you can forward back to the calling page. In my MVC framework,
I wanted to do a similar thing..so that if for some reason no mapping
existed or an error occured, you could forward back to the originating page.
The question the original author is after is how to get the full path/page
of the originating request. The HttpUtils.getRequestUri(request) I think
does just what your doing below, but includes the page (I could be
mistaken).
> -----Original Message-----
> From: Jann VanOver [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, August 16, 2001 1:23 PM
> To: [EMAIL PROTECTED]
> Subject: Re: URL reading
>
>
> "http://"+request.getServerName()+":"+request.getServerPort()+
> request.getCon
> textPath()
>
> -----Original Message-----
> From: Alireza Nahavandi [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, August 16, 2001 5:07 AM
> To: [EMAIL PROTECTED]
> Subject: URL reading
>
>
> Hi All,
> How can read the URL of a page. Some methods like getRequestURI(),
> getRequestURL(...), ... return the full path of the calling program.
>
> Thank you.
>
> ==============================================================
> =============
> 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://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
> ==============================================================
> =============
> 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://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
===========================================================================
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://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets