You can snag the "referer" from the HTTP header, to go back
past that is not possible unless you /own/ the web pages
the user was at previously. Even the "referer" field is
not always filled out depending on the browser.

If you do own page1 and page2 then you can just encode them and pass
them
along as arguments in the URL as you move amongst the pages (provided
they are servlet pages). If it's HTML pages pre-servlet then
you might be able to use a javascript program to dynamically write
out the <A href= links and attach the name of the page as a parameter
so that the next page can grab the param, add it's own identity to it
and manipulate it's own links... Strange stuff.

Better to write a servlet that keeps httpSession information, points
it's content links to itself with a parameter to tell it which page to
serve
up, keeping all the user page hits on a stack for these few pages.

I dunno :)

-Scott

Mark Smith wrote:
>
> How can i get say the previous 2 or 3 url's visited before the user gets to
> the servlet.
>
> page1 --> page2 --> page3 --> servlet (needs info on page1 or page2's URL)
>
> ___________________________________________________________________________
> 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

___________________________________________________________________________
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