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