Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 28527 invoked by uid 500); 25 Oct 2001 12:20:54 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk Reply-To: tomcat-user@jakarta.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 28506 invoked from network); 25 Oct 2001 12:20:53 -0000 Message-ID: <2907FAB4C465914F8763A15FD6BA1DC112F071@baracoa.local.ig> From: "Navarro, Jose" To: "'tomcat-user@jakarta.apache.org'" Subject: JSP - How do I make it invisible to the browser's "back" button? Date: Thu, 25 Oct 2001 14:28:56 +0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi! I have developed a JSP page which in turns invokes a servlet used to keep track of the number of times a certain page in my web is visited. In other words, when I have a link to some page, I do not link the target page directly but execute the JSP instead. More or less it goes this way: Text of the link

(here, "thisorthatpage" stands for an achronim that is stored in my hits database and that identifies the page being visited). So when the user clicks on the link, he or she is redirected to the jsp page which invokes the counter servlet and then redirects the user to the target (destination) page. The problem is that the jsp is stored in the browser's list of visited pages. If then the user wants to go back and clicks on the corresponding browser's button, the jsp page is executed again and he is redirected one more time to the same page. The feeling, therefore, is that the back button doesn't work at all. Then it would be very interesting to remove the jsp URL from the browser's access list, so the consequence would be that it would be "invisible" to the back command. Well, I hope that it is possible to access this list of visited pages from the jsp code and remove its own entry. Is this possible? If so, can you tell me how? If not, do you know any other way to implement it? Thanks alot for your help! Regards, Jose.