On Sat, 3 Aug 2002, Jim wrote:

> Hello,
>
> My servlet needs a way to know which page to generate next. Is there
> some way for it to determine the identity of the current page even when
> there is no form on the current page?

Well, you could always put a dummy/empty form on it, and use a hidden
parameter.  Or you could check the Referer header
(e.g. req.getHeader("Referer") -- I'm not sure of the exact
spelling/capitalization for "Referer", so you might have to try a few
different values to see what works, or look it up somewhere).

Milt Epstein
Research Programmer
Systems and Technology Services (STS)
Campus Information Technologies and Educational Services (CITES)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]

___________________________________________________________________________
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