You mean my typo?  "Referrer" should be "Referer."  Spell checker
changed it....

Cheers!
Mark

----- Original Message -----
From: "Peters, Jim" <[EMAIL PROTECTED]>
Sent: Monday, April 09, 2001 1:10 PM


> Something was bothering me ...
>
> String referringScreen = req.getHeader("Referer");
>
> Note the typo ?
>
> -----Original Message-----
> From: Mark Galbreath [mailto:[EMAIL PROTECTED]]
> Sent: Monday, April 09, 2001 11:45 AM
>
> You can find any environmental variable using the request get
methods;
> see Jason Hunter's "Java Servlet Programming," pp. 71-72, 102-103.
>
> Also, there is no need to cast the return to a String since it is
> already a String:
>
> String source = request.getHeader( "Referrer").
>
> Cheers,
> Mark
>
> ----- Original Message -----
> From: "Gareth Jones" <[EMAIL PROTECTED]>
> Sent: Monday, April 09, 2001 4:53 AM
>
>
> > there's a request header you can interogate-
> >
> > source = (String) request.getHeader("Referer");
> >
> >
> > >From: Stanley Tan <[EMAIL PROTECTED]>
> > >Date: Mon, 9 Apr 2001 10:29:44 +0800
> > >
> > >How do I get the referring page from a servlet?

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to