hello,

this thing can be tried for disabling back button. the url where the back button has 
to disabled should be called using this functionality.
<script language="javascript"><!--
function somefunction(){
window.open('theurl');
}
--></script>
<a href="javascript:somefunction()">abc</a>

i have tried it in ie and it work..

regards,
piyush.

------------- Original Message --------------
Amol Athavale <[EMAIL PROTECTED]> wrote:
To:[EMAIL PROTECTED]
From:Amol Athavale <[EMAIL PROTECTED]>
Date:Tue, 27 Mar 2001 15:59:31 +0530
Subject: Re: Back button

Hi,
Unfortunately, there is nothing which can stop the user from pressing back
button and again submitting the page, but you can have some means by which you
can monitor on the page that it is not getting visited using back/forward
button, i.e. refrainig the browser from caching the page.

One way could be using the <META HTTP-EQUIV-REFRESH....> tag so that the page
will refresh itself, and, in the page scope, U can set some variables which will
take U ( i.e. controller - servlet will do this ) to the home page directly

Other way may be using a session level variable which identifies whether the
page can be navigated in such a way !!!

*** For more information on disabling caching, check out Phil Paxton's great
article: Cache No More.  http://www.learnasp.com/learn/cachenomore.asp ***

This is for ASP but similar technique can be devised for JSP as well.




Erwin <[EMAIL PROTECTED]> on 03/27/2001 03:26:26 PM

Please respond to A mailing list about Java Server Pages specification and
      reference <[EMAIL PROTECTED]>

To:   [EMAIL PROTECTED]
cc:    (bcc: Amol Athavale/LTITLPUN)

Subject:  Re: Back button



Hi Mihir,

I have an idea.
As far as I understood, JSP Page 1 forwards to Servlet which forwards to
JSP Page 2 (the status page), right?
Make another JSP, JSP Page 3. Let the Servlet forward to JSP Page 3 instead
of the status page. On this Page 3, Output to the browser a (meta) refresh
to either the status page or your homepage, depending on, say, Referrer??
This way, when the user presses back button from the status page, he goes
to JSP Page 3, which sends him a refresh tag which redirects to the
homepage (or any other page)
If you want to, you can put all this "Page 3" code within the Status page
itself, somehow.
Oh, if you're sending info from the servlet to the Status page via the
forward tag (or whatever), u might have to use beans (or whatever)

If I'm completely wrong, hey, i'm a newbie.

Good luck,
Erwin

At 01:42 PM 3/26/01 -0600, you wrote:
>Hi,
>    I have a jsp status page,  which is displayed by the call from a
>servlet(this in turn was called by another jsp).  I do not want the back
>button on the browser to take me to the jsp which had called by the
>servlet, but to some other page(homepage etc.). Is there any method to
>do it directly by including something in the status page.  Any help is
>really appreciated.  Thanks
>Regards
>Mihir
>
>===========================================================================
>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://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===========================================================================
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://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===========================================================================
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://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

_____________________________________________________
Chat with your friends as soon as they come online. Get Rediff Bol at
http://bol.rediff.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://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to