tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Guo <cool_...@yahoo.com>
Subject RE: How do i get the URL ... ?
Date Fri, 21 Feb 2003 22:07:21 GMT

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" <Matt_Raible@cable.comcast.com> wrote:request.getRequestURL() if you're
using Servlet 2.3.

> -----Original Message-----
> From: Mufaddal Khumri [mailto:mufaddal@wmotion.com]
> 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: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org



---------------------------------
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, and more
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message