Incidentally, the value will be null if you access the servlet URL directly,
without an intervening page.

John 

> -----Original Message-----
> From: Turner, John [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 28, 2002 3:31 PM
> To: 'Tomcat Users List'
> Subject: RE: need to find out the URL of the page that sent 
> the request
> 
> 
> 
> No, it's a HTTP spec.
> 
> Here's my chance to correct Charlie's correction of my 
> original post! :)
> 
> I think it should be:
> 
> request.getHeader("referer"); (note lower case "r")
> 
> If you want to see an example, check the tomcat examples, the 
> servlet is
> called RequestHeaderExample and the source code should be 
> available in the
> examples directory.
> 
> John
> 
> > -----Original Message-----
> > From: Peter Choe [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, August 28, 2002 3:26 PM
> > To: Tomcat Users List
> > Subject: RE: need to find out the URL of the page that sent 
> > the request
> > 
> > 
> > thanks.  but when i tried to do request.getHeader("Referer") 
> > it just gave 
> > me null.  is this browser specific?
> > 
> > Peter Choe
> > 
> > At 03:12 PM 8/28/2002, you wrote:
> > 
> > >You're right, my bad.
> > >
> > >John
> > >
> 
> --
> 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