If javascript is not a choice, then you should track the way of the user
yourself
in the servlets you are programming. Use a session variable to store a
list of the previous page/servlet-urls
the user visited and use this information to implement the "back button"
function with a link or a button.

the complexity in the implementation of the "back button" hides in the
problem to store the former states
of your servlets. If this states are only determined by the form
parameters the servlet receives and you are only
using GET requests, the solution above seems perfect: you only have to
store the full request urls and then use
request.sendRedirect(<old url>) ;

if there are other parameters that have an impact on your servlet state
or you are using POST then you would
have to store much more in the user session. Also the invokation it is
not as simple as using a sendRedirect.

-henning

"Concannon, David" wrote:

> Why don't you just use javascript?
>
>      -----Original Message-----
>      From: Miguel Angel Fernandez
>      [mailto:[EMAIL PROTECTED]]
>      Sent: Thursday, March 09, 2000 11:59 AM
>      To: [EMAIL PROTECTED]
>      Subject: Simulate "Back Button"
>
>      Hi all, u know what must I send (via HTTP) to the browser to
>      simulate browser "Back Button" ?Thanks in
>      advance============================================
>      Miguel Angel Fernandez
>      mailto:[EMAIL PROTECTED]
>      Mobile Phone: (34) 656 404 806
>      Job Phone: (34) 91 353 08 54
>      Java Developer
>      TECSIDEL
>      ============================================
>
begin:vcard
n:Brune;Henning
tel;fax:+49 (0)5 21/1 06-64 40
tel;work:+49 (0)5 21/1 06-29 48
x-mozilla-html:FALSE
org:Universitaet Bielefeld;Technische Fakultaet, AG TI
adr:;;Postfach 100131;Bielefeld;NRW;33501;Germany
version:2.1
email;internet:[EMAIL PROTECTED]
title:Dipl.-Inform.
fn:Henning Brune
end:vcard

Reply via email to