"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 URL of a
> request, so after I process the request in the servlet, I can send it
> back/redirect it to the same exact page/URL that it came from.

If the information is available (no guarantees) it's available as the
"Referer" header, so req.getHeader("Referer") works.

--
Hans Bergsten           [EMAIL PROTECTED]
Gefion Software         http://www.gefionsoftware.com

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to