> Hi all,
>
> I am a JSP beginner and hope someone can help me to solve a problem.
>
> How to get the exact URL (i.e. http://.......) of the current
> jsp page? I
> have tried the method getRequestURI but I just got the file
> path instead of
> the URL.
>
> Does anyone know how to solve this?
> Really thanks a lot.


Hi,

Try javax.servlet.http.HttpUtils.getRequestURL();

cheers,
Kare 8^)

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
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

Reply via email to