HttpServletRequest.getRequestURI() or HttpServletRequest.getRequestURL(),
depending on what you want.

FYI, the specs for javax.servlet.http are here:
http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/http/package-sum
mary.html

John Turner
[EMAIL PROTECTED]


> -----Original Message-----
> From: Peter Choe [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 28, 2002 2:44 PM
> To: [EMAIL PROTECTED]
> Subject: need to find out the URL of the page that sent the request
> 
> 
> how can i find out the URL that makes a request to a jsp?
> 
> if a page from http://www.myserver.com/request.html makes a 
> request to 
> http://www.myserver.com/myservlet.jsp, how can myservlet.jsp 
> know if the 
> request came from http://www.myserver.com/request.html and 
> not another page?
> 
> Peter
> 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: 
> <mailto:[EMAIL PROTECTED]>
> 

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to