Dear Brian, I didn't check it with netscape but it works using IE. well, in your case you got to build session a session variable to check if the user is on track or not. for example you can use an expired time session or you can use after submiting the data session expires. so when going back to the history page and submiting the data agian you have to check if the session expire or not .. if it is expired a redirection to an error page happens :) I think this is the best way for tracking the user. Regards Omar A. ELprince
>From: Brian Bohnet <[EMAIL PROTECTED]> >Reply-To: A mailing list about Java Server Pages specification and >reference <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >Subject: Re: Disabling Back & Forward Buttons of IE >Date: Fri, 28 Dec 2001 12:00:29 -0600 >MIME-Version: 1.0 >Received: from [192.18.99.108] by hotmail.com (3.2) with ESMTP id >MHotMailBDF5FFDE00A640043720C012636CCE870; Fri, 28 Dec 2001 10:07:45 -0800 >Received: from swjscmail1 (swjscmail1.Sun.COM [192.18.99.107])by >swjscmail2.java.sun.com (Postfix) with ESMTPid AC921224FA; Fri, 28 Dec 2001 >11:05:59 -0700 (MST) >Received: from JAVA.SUN.COM by JAVA.SUN.COM (LISTSERV-TCP/IP release 1.8d) >with spool id 839650 for [EMAIL PROTECTED]; Fri, 28 Dec >2001 11:05:08 -0700 >Received: from zeus.viaservices.com (unknown [63.73.115.186]) by >swjscmail1.java.sun.com (Postfix) with ESMTP id D8367481E for ><[EMAIL PROTECTED]>; Fri, 28 Dec 2001 10:55:07 -0700 (MST) >Received: from oration.net (192.168.97.14 [192.168.97.14]) by >zeus.viaservices.com with SMTP (Microsoft Exchange Internet Mail >Service Version 5.5.2653.13) id YYMZRM8R; Fri, 28 Dec 2001 12:05:46 > -0600 >From [EMAIL PROTECTED] Fri, 28 Dec 2001 10:08:17 -0800 >Delivered-To: [EMAIL PROTECTED] >X-Mailer: Mozilla 4.78 [en] (X11; U; Linux 2.4.7-10 i586) >X-Accept-Language: en >References: <[EMAIL PROTECTED]> >Message-ID: <[EMAIL PROTECTED]> >Sender: A mailing list about Java Server Pages specification and reference ><[EMAIL PROTECTED]> >Organization: VSG > >Omar, >I tried your code below in Netscape 4.78, and it didn't seem to have any >affect on my Back button. Do you know if it works cross-browser, or did >I make a mistake somewhere? >Can you explain the "action=results.jsp"? Is that a reference to an >existing .jsp or the .jsp that the <%@ include file="goout.html" %> tag >is in? > >By the way, disabling the Back in my case is to prevent errors in >dynamic jsp's because the CGI variables may no longer be valid to >produce a document. > >Thanks, >Brian >Omar Elprince wrote: > > > > Hello > > I don't know why you need to disable the back and forward button > > but once i needed to disable the back button in a project. here it goes > > first you got to set your session for no cache > > response.setHeader("Cache-Control", "no-cache"); //for http 1.1 > > response.setHeader("Pragma", "no-cache"); //for http 1.0 > > > > then you can use include the page like in another directory > > <%@ include file="include/goout.html" %> > > > > in the goout.html you can add this using javascript > > > > <form method="PUT" action="results.jsp" name="theinsertForm"> > > </form> > > <script language="javascript"> > > <!-- > > document.theinsertForm.submit(); > > //--> > > </script> > > > > this will make the browser lose track of the back page and couse a >deadlock > > if any one has a better idea please submit it :) > > > > >From: Ravi Soni <[EMAIL PROTECTED]> > > >Reply-To: A mailing list about Java Server Pages specification and > > >reference <[EMAIL PROTECTED]> > > >To: [EMAIL PROTECTED] > > >Subject: Disabling Back & Forward Buttons of IE > > >Date: Fri, 28 Dec 2001 10:56:34 +0530 > > >MIME-Version: 1.0 > > >Received: from [192.18.99.108] by hotmail.com (3.2) with ESMTP id > > >MHotMailBDF5509C004B40043721C012636CCFCE0; Thu, 27 Dec 2001 21:40:07 >-0800 > > >Received: from swjscmail1 (swjscmail1.Sun.COM [192.18.99.107])by > > >swjscmail2.java.sun.com (Postfix) with ESMTPid 1D3B3220C8; Thu, 27 Dec >2001 > > >22:38:26 -0700 (MST) > > >Received: from JAVA.SUN.COM by JAVA.SUN.COM (LISTSERV-TCP/IP release >1.8d) > > >with spool id 853806 for [EMAIL PROTECTED]; Thu, 27 >Dec > > >2001 22:37:35 -0700 > > >Received: from watchman.quark.co.in (unknown [12.3.72.51]) by > > >swjscmail1.java.sun.com (Postfix) with ESMTP id 76093480A for > > ><[EMAIL PROTECTED]>; Thu, 27 Dec 2001 22:27:26 -0700 (MST) > > >Received: by SARASWATI with Internet Mail Service (5.5.2653.19) id > > ><YNR5R4LV>; Fri, 28 Dec 2001 10:56:35 +0530 > > >From [EMAIL PROTECTED] Thu, 27 Dec 2001 21:40:47 -0800 > > >Delivered-To: [EMAIL PROTECTED] > > >X-Mailer: Internet Mail Service (5.5.2653.19) > > >Message-ID: <6A9AC06CAB51D4118A6A0000E898F2E40366F1B7@SARASWATI> > > >Sender: A mailing list about Java Server Pages specification and >reference > > ><[EMAIL PROTECTED]> > > > > > >Hi All, > > > > > > I want to disable Back & Forward Buttons of IE in my application. > > > > > >Can anybody suggest any wayouts. > > > > > >Ravi > > > > > > >=========================================================================== > > >To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff > > >JSP-INTEREST". > > >For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST > > >DIGEST". > > >Some relevant FAQs on JSP/Servlets can be found at: > > > > > > http://archives.java.sun.com/jsp-interest.html > > > http://java.sun.com/products/jsp/faq.html > > > http://www.esperanto.org.nz/jsp/jspfaq.jsp > > > http://www.jguru.com/faq/index.jsp > > > http://www.jspinsider.com > > > > _________________________________________________________________ > > Join the world?s largest e-mail service with MSN Hotmail. > > http://www.hotmail.com > > > > >=========================================================================== > > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff >JSP-INTEREST". > > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST >DIGEST". > > Some relevant FAQs on JSP/Servlets can be found at: > > > > http://archives.java.sun.com/jsp-interest.html > > http://java.sun.com/products/jsp/faq.html > > http://www.esperanto.org.nz/jsp/jspfaq.jsp > > http://www.jguru.com/faq/index.jsp > > http://www.jspinsider.com > >=========================================================================== >To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff >JSP-INTEREST". >For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST >DIGEST". >Some relevant FAQs on JSP/Servlets can be found at: > > http://archives.java.sun.com/jsp-interest.html > http://java.sun.com/products/jsp/faq.html > http://www.esperanto.org.nz/jsp/jspfaq.jsp > http://www.jguru.com/faq/index.jsp > http://www.jspinsider.com _________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
