again,
Reza
-Original Message-
From: Beheshti, Reza
Sent: Wednesday, June 09, 1999 3:04 PM
To: 'JSP List'
Subject: How do you send them back to where they came from?
Hi,
I am relatively new to JSP and Servlet, so forgive me if this is a trivial
question.
I dogged thru the servelt API
ts?
Thanks again,
Reza
-Original Message-
From: Beheshti, Reza
Sent: Wednesday, June 09, 1999 3:04 PM
To: 'JSP List'
Subject: How do you send them back to where they came from?
Hi,
I am relatively new to JSP and Servlet, so forgive me if this is a trivial
question.
I dogged thru the ser
"Beheshti, Reza" wrote:
Thanks to all of you who responded, but I still can not get to the original
page URL!!!
I tried both HttpUtils.getRequestURL() and req.getRequestURI() from the
servlet and BOTH of them just return the URL for the servlet NOT the page
that the servlet was called from.
Title: RE: How do you send them back to where they came from?
You can do this in JavaScript. Add the following code to your JSP file after all your server-side processing is done:
script language=javascript
if (document.referrer)
{
location.replace(document.referrer);
}
/script
-Ken
Use req.getHeader("REFERER") where req is the HttpRequest.
"Beheshti, Reza" wrote:
Thanks to all of you who responded, but I still can not get to the
original
page URL!!! I tried both HttpUtils.getRequestURL() and req.getRequestURI()
from the
servlet and BOTH of them just return the URL
Hi,
I am relatively new to JSP and Servlet, so forgive me if this is a trivial
question.
I dogged thru the servelt API and did not find anything in "req" object
where I can figure out the URL of the req.
I need to be able to (in the servelet) figure out the origin URL of a
request, so after I
"Beheshti, Reza" wrote:
Hi,
I am relatively new to JSP and Servlet, so forgive me if this is a trivial
question.
I dogged thru the servelt API and did not find anything in "req" object
where I can figure out the URL of the req.
I need to be able to (in the servelet) figure out the origin
Taylor Gautier wrote:
- Original Message -
From: Hans Bergsten [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 09, 1999 12:45 PM
Subject: Re: How do you send them back to where they came from?
"Beheshti, Reza" wrote:
Hi,
I am relatively