Try to use this method from HttpUtils:
static StringBuffer getRequestURL(HttpServletRequest req)
JSP sample:
out.println( HttpUtils.getRequestURL(request) );
RoBo Zilka
____________
/EuroWeb a.s.
/www.euroweb.sk
/mailto:[EMAIL PROTECTED]
-----Original Message-----
From: Kate Bornstein [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 26, 2000 12:02 PM
To: [EMAIL PROTECTED]
Subject: How to get currect URL?
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.
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
===========================================================================
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
===========================================================================
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