On Fri, 15 Oct 1999, Antonio Villafana wrote:
> Hello Everyone,
> Firstly let me thank everyone here for the generous amount of free
> information on this forum.
> Here is my question...... I would like to call a specific method
> within a class (servlet), depending on the URL/web-page that the
> request(Post) is coming from, then capture the URL in a session
> object. e.g. If someone clicked the <submit> button on page
> http://www.java-sun/thispage.html or page
> http://www.java-sun/webpage.html it would invoke the same servlet,
> but I would like to redirect the Post to a specific method within
> the servlet depending on what page made the request.
You might try req.getHeader("Referer") (not sure of the exact
name/spelling of the header name, or whether it will be exactly what
you're looking for, but may be worth a try).
Milt Epstein
Research Programmer
Software/Systems Development Group
Computing and Communications Services Office (CCSO)
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