You're right, my bad.  

John 

> -----Original Message-----
> From: Cox, Charlie [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 28, 2002 3:01 PM
> To: 'Tomcat Users List'
> Subject: RE: need to find out the URL of the page that sent 
> the request
> 
> 
> actually, I think you are looking for the referring page, which is
> 
> request.getHeader("Referer");
> 
> Charlie
> 
> > -----Original Message-----
> > From: Turner, John [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, August 28, 2002 2:54 PM
> > To: 'Tomcat Users List'
> > Subject: RE: need to find out the URL of the page that sent 
> > the request
> > 
> > 
> > 
> > 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/ht
> > tp/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]>
> > 
> 
> --
> 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