request.getRequestURL() - gives you the string without the host and protocol
request.getRequestURI() - gives you the whole and complete string, but excluding
parameters.
Raible, Matt [EMAIL PROTECTED] wrote:request.getRequestURL() if you're using
Servlet 2.3.
-Original Message-
From: Mufaddal Khumri [mailto:[EMAIL PROTECTED]
Sent: Friday, February 21, 2003 2:21 AM
To: Tomcat List
Subject: How do i get the URL ... ?
Hi,
Lets say I have a Welcome.jsp page. How can i get the
completely URL to
this page from within the Welcome.jsp page ?
Welcome.jsp could be under
http://mydomain.ding.com/blah/bloop/Welcome.jsp
OR
http://yourdomain.dong.com/yum/dum/Welcome.jsp
So how do i access what URL was used to access Welcome.jsp
from within
Welcome.jsp ?
Thanks.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, and more