You can send this back to the browser.

<body onload='alert("you have an error."); history.go(-1);'></body>

On Fri Sep 10 12:51:42 CEST 2004 Keith Hankin <[EMAIL PROTECTED]> wrote:



My code is in the Servlet, and I can't access Javascript within the Servlet.

----- Original Message -----
From: "Tim Funk" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, September 10, 2004 4:10 PM
Subject: Re: 'referer' header contains Servlet path, not referrer


javascript:history.go(-1) ?

-Tim


Keith Hankin wrote:

Here's the scenario: I am getting input data from the user and have
determined that the user has made an error. I want to redisplay the last
page so they can fix the errors.

----- Original Message -----
From: "QM" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Thursday, September 09, 2004 6:50 PM
Subject: Re: 'referer' header contains Servlet path, not referrer



On Thu, Sep 09, 2004 at 03:16:19PM +0530, Keith Hankin wrote:
: I am trying to determine what JSP page sent me to my Servlet, so I use

request.getHeader("referer"). Unfortunately, the String returned is the Servlet itself and not the actual referer. This seems like a bug to me.
Is
there some way to get the actual referer?

The "referer" header isn't reliable. Browsers may refuse to send it,
for privacy reasons.

What's your high-level goal?


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



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




Reply via email to