I've run into similar problems and decided to deal with it through javascript, hoping the user won't open the page in a new browser window. Although, you can still deal with that problem through javascript.
You get rid of the back button problem by using a javascript link to open the window initially. That way, you can specify whether you want the back button, etc. or not. The following snipit of code will link to your application (or mine) and open a new window, minus the browser functionality.
i.e.
<html>
<head>
<title>Delfour Corporation</title>
<script language="JavaScript">
<!-- hide me
function servletFoundation()
{
window.open("http://localhost:8080/delfour_servlet/Saucer","_blank",
"width=640,height=480,resizable,scrollbars,status");
}
// end hide -->
</script>
</head>
<body>
<h1>Servlet Foundation Link</h1>
<a href="#" Foundation</a><br>
</body>
Matt MacGillivray
Technical Developer
Delfour Corporation
(905) 415-9779 x2021
[EMAIL PROTECTED]
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 3:49 PM
To: Orion-Interest
Subject: Bowser back buttons and jsp
This question doesn't really apply to the webserver in general. I have
developed an ecommerce application using java beans and jsp.
Unfortunately, during qa testing, one problem keeps coming up. If you
click the back button on the browser and ignore the navigation built into
the system, you encounter errors. I've researched if there was a way to
disable the browser navigation options via javascript or some other way but
I found that this is not really possible. What I was wondering is how do
other java professionals handle this problem? Has anyone ever ran into
this?
