Re: disable back button
Using javascript: e.g. var params = "location=no,status=no,toolbar=no,menubar=no,scrollbars=no,resizable=yes,width=200,height=300"; window.open( "http://www.yahoo.com";, "", params); /Peter -Original Message- From: LUIS BARRERA [mailto:[EMAIL PROTECTED]] Sent: Friday, May 03, 2002 6:11 PM To: [EMAIL PROTECTED] Subject: Re: disable back button Adding to the original question, How do those pop-up windows open a new browser instance which does not contain any toolbars?. Thanks Luis --- Margaret Fisk <[EMAIL PROTECTED]> wrote: > The best way I know of is to launch your application > in another browser > window after login or launch. In that case the back > button is disabled > because nothing came before. > > Another way it to set up an automatic redirect so > that when a user clicks > back, they get pushed forward again automatically. > They can still get out by > clicking back twice rapidly or selecting a previous > page from the drop-down. > > -Original Message- > From: Eric Cho [mailto:[EMAIL PROTECTED]] > Sent: Friday, May 03, 2002 1:39 PM > To: [EMAIL PROTECTED] > Subject: disable back button > > > Hey all, > > Is there any way via jsp or any other method you can > think of to disable the > back button on the browsers?!?! > > Thanks, > Eric > > > > > ** > The contents of this email and any attachments are > confidential. > It is intended for the named recipient(s) only. > If you have received this email in error please > notify the system manager or > the > sender immediately and do not disclose the contents > to any one or make > copies. > > ** eSafe scanned this email for viruses, vandals and > malicious content ** > > ** > > === > 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 __ Do You Yahoo!? Yahoo! Health - your guide to health and wellness http://health.yahoo.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
Re: disable back button
Adding to the original question, How do those pop-up windows open a new browser instance which does not contain any toolbars?. Thanks Luis --- Margaret Fisk <[EMAIL PROTECTED]> wrote: > The best way I know of is to launch your application > in another browser > window after login or launch. In that case the back > button is disabled > because nothing came before. > > Another way it to set up an automatic redirect so > that when a user clicks > back, they get pushed forward again automatically. > They can still get out by > clicking back twice rapidly or selecting a previous > page from the drop-down. > > -Original Message- > From: Eric Cho [mailto:[EMAIL PROTECTED]] > Sent: Friday, May 03, 2002 1:39 PM > To: [EMAIL PROTECTED] > Subject: disable back button > > > Hey all, > > Is there any way via jsp or any other method you can > think of to disable the > back button on the browsers?!?! > > Thanks, > Eric > > > > > ** > The contents of this email and any attachments are > confidential. > It is intended for the named recipient(s) only. > If you have received this email in error please > notify the system manager or > the > sender immediately and do not disclose the contents > to any one or make > copies. > > ** eSafe scanned this email for viruses, vandals and > malicious content ** > > ** > > === > 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 __ Do You Yahoo!? Yahoo! Health - your guide to health and wellness http://health.yahoo.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
Re: disable back button
Meta tag with cache expires in history, with no-cache. -Original Message- From: Eric Cho [mailto:[EMAIL PROTECTED]] Sent: Friday, May 03, 2002 1:39 PM To: [EMAIL PROTECTED] Subject: disable back button Hey all, Is there any way via jsp or any other method you can think of to disable the back button on the browsers?!?! Thanks, Eric ** The contents of this email and any attachments are confidential. It is intended for the named recipient(s) only. If you have received this email in error please notify the system manager or the sender immediately and do not disclose the contents to any one or make copies. ** eSafe scanned this email for viruses, vandals and malicious content ** ** === 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
Re: disable back button
The best way I know of is to launch your application in another browser window after login or launch. In that case the back button is disabled because nothing came before. Another way it to set up an automatic redirect so that when a user clicks back, they get pushed forward again automatically. They can still get out by clicking back twice rapidly or selecting a previous page from the drop-down. -Original Message- From: Eric Cho [mailto:[EMAIL PROTECTED]] Sent: Friday, May 03, 2002 1:39 PM To: [EMAIL PROTECTED] Subject: disable back button Hey all, Is there any way via jsp or any other method you can think of to disable the back button on the browsers?!?! Thanks, Eric ** The contents of this email and any attachments are confidential. It is intended for the named recipient(s) only. If you have received this email in error please notify the system manager or the sender immediately and do not disclose the contents to any one or make copies. ** eSafe scanned this email for viruses, vandals and malicious content ** ** === 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
disable back button
Hey all, Is there any way via jsp or any other method you can think of to disable the back button on the browsers?!?! Thanks, Eric ** The contents of this email and any attachments are confidential. It is intended for the named recipient(s) only. If you have received this email in error please notify the system manager or the sender immediately and do not disclose the contents to any one or make copies. ** eSafe scanned this email for viruses, vandals and malicious content ** ** === 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
Re: disabling the back button
There is no way to guarantee that the user can not somehow use the back button. Joseph Karau Kingland Systems [EMAIL PROTECTED] 507-536-3629 AIM: jkara3629 -Original Message- From: King Maurice [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 15, 2001 4:07 PM To: [EMAIL PROTECTED] Subject: disabling the back button Off the subject I am creating a program which one of the features it does not all you to hit the back button. Does someone have a java code for that, if not due to limitation to browser does any have the code for javascript Maurice~ - Original Message - From: "sufi malak" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, May 15, 2001 3:12 PM Subject: apache + tomcat ?? > Hi, > I installed Apache to work with tomcat, if I wok from tomcat directly: > when I type http://mil2wwds10:8080/jetspeed/ > I got http://mil2wwds10:8080/jetspeed/index.jsp > and everything works fine. > > But if I call from Apache port : > http://mil2wwds10:80/jetspeed/ > I got only a page that show all the files and directories under jetspeed, > then I have to click in index.jsp to be shown, and when I click in a link in > the index.jsp file, if the link is an html file it works fine, but if it's a > jsp or servlet it does not work. > > > _ > Get your FREE download of MSN Explorer at http://explorer.msn.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 > === 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
disabling the back button
Off the subject I am creating a program which one of the features it does not all you to hit the back button. Does someone have a java code for that, if not due to limitation to browser does any have the code for javascript Maurice~ - Original Message - From: "sufi malak" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, May 15, 2001 3:12 PM Subject: apache + tomcat ?? > Hi, > I installed Apache to work with tomcat, if I wok from tomcat directly: > when I type http://mil2wwds10:8080/jetspeed/ > I got http://mil2wwds10:8080/jetspeed/index.jsp > and everything works fine. > > But if I call from Apache port : > http://mil2wwds10:80/jetspeed/ > I got only a page that show all the files and directories under jetspeed, > then I have to click in index.jsp to be shown, and when I click in a link in > the index.jsp file, if the link is an html file it works fine, but if it's a > jsp or servlet it does not work. > > > _ > Get your FREE download of MSN Explorer at http://explorer.msn.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 > === 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
Re: Back Button problem of Browser
Ok. Maybe you just joined the list... This discussion has been discussed at LEAST 3 times in the month of March. Please visit the archives for this list at http://archives.java.sun.com/archives/jsp-interest.html if you're not satisfied, then visit other websites... it would be a client-side event, not server-side. Thus, javascript as opposed to jsp. nasser - Original Message - From: "asitha ranjan" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, April 03, 2001 1:08 AM Subject: Back Button problem of Browser Hi, Is there any way by which i can restrict the user pressing back button.. bye, Asitha. __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/?.refer=text === 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
Re: Back Button problem of Browser
override keypressed() event. -Original Message- From: asitha ranjan [mailto:[EMAIL PROTECTED]] Sent: Monday, April 02, 2001 10:08 PM To: [EMAIL PROTECTED] Subject: Back Button problem of Browser Hi, Is there any way by which i can restrict the user pressing back button.. bye, Asitha. __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/?.refer=text === 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
Back Button problem of Browser
Hi, Is there any way by which i can restrict the user pressing back button.. bye, Asitha. __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/?.refer=text === 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
Re: Back button
Piyush, this acknowledgement page will be generated by servlet/jsp after committing the data to database, hence, I think, the pop-up page may not be useful. Amol piyush jain <[EMAIL PROTECTED]> on 03/28/2001 11:17:45 AM 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 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. <!-- function somefunction(){ window.open('theurl'); } --> abc 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 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 w
Re: Back button
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. <!-- function somefunction(){ window.open('theurl'); } --> abc 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 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
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 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
Re: Back button
one thing that can be done is that by writing a small javascript code , you can capture the browser's back button and write a javascript to take the user to anew jsp page once the back button is clicked.this can be done by submitting a new form or by using jsp:sendRedirect. give your feedback if u r able to do it this way. ash - Original Message - From: Erwin <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, March 27, 2001 2:26 PM 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
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
Re: Back button
Can you please forward us the piece of code which you used for directing it to a new window and close the old window. > -Original Message- > From: Bansal Siddharth [SMTP:[EMAIL PROTECTED]] > Sent: Tuesday, March 27, 2001 2:42 AM > To: [EMAIL PROTECTED] > Subject: Re: Back button > > I don't think you can modify the back button on the browser. I had a > similar problem and what I did is to direct the page to a new window and > close the old window and it appears no change. So the new window will not > have any back button at all. > > I hope this will help you, it helped me avoid somethings. > > Siddharth Bansal > Consultant (CT/AD&I/FSI) > Cap Gemini Ernst & Young > > > > Mihir Sahu > <[EMAIL PROTECTED]To: > [EMAIL PROTECTED] > > cc: > Sent by: A Subject: Back button > mailing list > about Java Server > Pages > specification and > reference > a.sun.com> > > > 03/26/2001 01:42 > PM > Please respond to > A mailing list > about Java Server > Pages > specification and > reference > > > > > > > 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 > > > > __ > The information contained in this communication is intended solely for the > use of the individual or entity to whom it is addressed and others > authorized to receive it. It may contain confidential or legally > privileged > information. If you are not the intended recipient you are hereby notified > that any disclosure, copying, distribution or taking any action in > reliance > on the contents of this information is strictly prohibited and may be > unlawful. If you have received this communication in error, please notify > us immediately by responding to this email and then delete it from your > system. Cap Gemini Ernst & Young is neither liable for the proper and > complete transmission of the information contained in this communication > nor for any delay in its receipt. > > == > = > 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
Re: Back button
Here's an idea, Have the status be incorporated into the resulting JSP... like @ the top... then have it disappear (javascript, or whatever) when the resulting JSP is fully loaded (ready to flush content to the browser). It's a much smarter way of doing it. It eliminates a status page... it makes the status be on the results; except it disappears when results are there. As my mom would say, "duh." Yours, Nasser Dassi NYU Student Senator Software & Internet Developer [EMAIL PROTECTED] "Openmindedness Rewards A Lifetime" - Original Message - From: "Mihir Sahu" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, March 26, 2001 2:42 PM Subject: Back button 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
Re: Back button
I don't think you can modify the back button on the browser. I had a similar problem and what I did is to direct the page to a new window and close the old window and it appears no change. So the new window will not have any back button at all. I hope this will help you, it helped me avoid somethings. Siddharth Bansal Consultant (CT/AD&I/FSI) Cap Gemini Ernst & Young Mihir Sahu <[EMAIL PROTECTED]To: [EMAIL PROTECTED] >cc: Sent by: A Subject: Back button mailing list about Java Server Pages specification and reference 03/26/2001 01:42 PM Please respond to A mailing list about Java Server Pages specification and reference 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 __ The information contained in this communication is intended solely for the use of the individual or entity to whom it is addressed and others authorized to receive it. It may contain confidential or legally privileged information. If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution or taking any action in reliance on the contents of this information is strictly prohibited and may be unlawful. If you have received this communication in error, please notify us immediately by responding to this email and then delete it from your system. Cap Gemini Ernst & Young is neither liable for the proper and complete transmission of the information contained in this communication nor for any delay in its receipt. === 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
Back button
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
Re: Disabling back button on the browser
And besides that, I don't think there's a safe way to disable the back button anyway. In web development, if you rely on client side stuff, there's never a safe way to do anything. - disabling back button - form field validation - client side redirects - javascript in general, - applets Not that you shouldn't use these techniques, you just have to be aware of the limiation. Geert Van Damme > -Original Message- > From: A mailing list about Java Server Pages specification and reference > [mailto:[EMAIL PROTECTED]]On Behalf Of Marty McKeever > Sent: maandag 26 maart 2001 16:34 > To: [EMAIL PROTECTED] > Subject: Re: Disabling back button on the browser > > > In addition to being a faq on this list, it's also one of the worst > possible mistakes you can make, in terms of usability. Users love their > back buttons, and will react unfavorably to any attempt to > disable it. The > solution, of course, is to accomodate it. > Pissing off your users does nothing to improve your product. > It just makes you look lazy... > > Marty > > > At 07:27 PM 3/25/01 -0800, you wrote: > >Have you checked the archive. This has to be one of the most f.a.q. > > > >http://archives.java.sun.com/archives/jsp-interest.html > > > > > >- Original Message - > >From: Swaminathan Gopal <[EMAIL PROTECTED]> > >Date: Sunday, March 25, 2001 7:49 pm > >Subject: Disabling back button on the browser > > > > > Hi, > > > > > > Can anyone of you please tell me how can we disable the back > > > button on the > > > browser using JavaScript. > > > > > > Regards, > > > Swami. > > > > > > > > > >=== > > > 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 > > ## Marty McKeever[Information Architect] > ## [EMAIL PROTECTED] [I-Silver, Inc] > > == > = > 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
Re: Disabling back button on the browser
In addition to being a faq on this list, it's also one of the worst possible mistakes you can make, in terms of usability. Users love their back buttons, and will react unfavorably to any attempt to disable it. The solution, of course, is to accomodate it. Pissing off your users does nothing to improve your product. It just makes you look lazy... Marty At 07:27 PM 3/25/01 -0800, you wrote: >Have you checked the archive. This has to be one of the most f.a.q. > >http://archives.java.sun.com/archives/jsp-interest.html > > >- Original Message - >From: Swaminathan Gopal <[EMAIL PROTECTED]> >Date: Sunday, March 25, 2001 7:49 pm >Subject: Disabling back button on the browser > > > Hi, > > > > Can anyone of you please tell me how can we disable the back > > button on the > > browser using JavaScript. > > > > Regards, > > Swami. > > > > > >=== > > 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 ## Marty McKeever[Information Architect] ## [EMAIL PROTECTED] [I-Silver, Inc] === 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
Re: Disabling back button on the browser
nope, i didn't. I'll do that right away. thanks a lot for all the inputs Swami. > -- > From: T.A. Flores[SMTP:[EMAIL PROTECTED]] > Reply To: A mailing list about Java Server Pages specification and > reference > Sent: Monday, March 26, 2001 8:57 AM > To: [EMAIL PROTECTED] > Subject: Re: Disabling back button on the browser > > Have you checked the archive. This has to be one of the most f.a.q. > > http://archives.java.sun.com/archives/jsp-interest.html > > > - Original Message - > From: Swaminathan Gopal <[EMAIL PROTECTED]> > Date: Sunday, March 25, 2001 7:49 pm > Subject: Disabling back button on the browser > > > Hi, > > > > Can anyone of you please tell me how can we disable the back > > button on the > > browser using JavaScript. > > > > Regards, > > Swami. > > > > > > === > > 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
Re: Disabling back button on the browser
Have you checked the archive. This has to be one of the most f.a.q. http://archives.java.sun.com/archives/jsp-interest.html - Original Message - From: Swaminathan Gopal <[EMAIL PROTECTED]> Date: Sunday, March 25, 2001 7:49 pm Subject: Disabling back button on the browser > Hi, > > Can anyone of you please tell me how can we disable the back > button on the > browser using JavaScript. > > Regards, > Swami. > > === > 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
Disabling back button on the browser
Hi, Can anyone of you please tell me how can we disable the back button on the browser using JavaScript. Regards, Swami. === 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
Re: Back Button
Your Alert call from Javascript is not in the proper event... it should be called in the "onsubmit" event of the button.. somehow it is called after the page is unloaded. > -Original Message- > From: A mailing list about Java Server Pages specification and reference > [mailto:[EMAIL PROTECTED]]On Behalf Of Merrill George > Sent: Friday, March 02, 2001 11:31 PM > To: [EMAIL PROTECTED] > Subject: Back Button > > > Hi all, > I have developed a jsp page which on submit calls itself > recursively. > That is the jsp is test.jsp and its form action="test.jsp". > My problem is , when it calls itself depending on certain conditions i > show an alert > on the onLoad trigger because for different conditions i've got > different tags. > > For example when i Press a 'Save' Button I get a number from a > database and i show it in the alert as > 'Record 1000blah Created' > > suppose i go from this page and press the back button the page appears > with the alert. with the same message > which is awkward. Is there a way to avoid this? > thanks > Merrill > > == > = > 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
Back Button
Hi all, I have developed a jsp page which on submit calls itself recursively. That is the jsp is test.jsp and its form action="test.jsp". My problem is , when it calls itself depending on certain conditions i show an alert on the onLoad trigger because for different conditions i've got different tags. For example when i Press a 'Save' Button I get a number from a database and i show it in the alert as 'Record 1000blah Created' suppose i go from this page and press the back button the page appears with the alert. with the same message which is awkward. Is there a way to avoid this? thanks Merrill === 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
how to force a jsp page refresh when the browser back button back to it?
I need to programmly refresh a jsp page when the browser back button back to this jsp page. how to do it? I mean how to detect that the browser back button is clicked and then force the jsp page refresh? thanks helen _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com. === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". 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
Re: help:session variable could not retain old data if back button clicked
> Hi, > can someone give me some help, I stucked here almost 2 days... > 8. on the bottom of results.jsp will has a hyperlink "begin a new search" > bring user back to the > searchForm.jsp. > the above steps are all works fine if I do one search after another. I am sure if here You press back button it will point You to search.jsp and any further actions will be correct like forward back and see details. if it is not like this please send how it is to clarify situation. > PROBLEMS: > 1. if I click the browser back button to > previous result page, it looks like the previous results still showing > there, but since the session variable already overwriten by the lastest > search results, so the details page will has wrong data. You should not be able to see previous results. Try to set no-cashe headers. > 2. if I go back through browser to previous results page and that page has > [previous] [next] link, if I click either [previous] or [next] link, then > the results will mess up, it will based on the latest results count to > recalculate the page number instead of the previous results count. keep search expression in a hidden form feald in result.jsp and validate it all times when next an previous handlers are invoked. If it is changed make requery(research). ( I think this is the best solution. ) of try to identify browser windows with some prodused uniqie ID within user session Good luck Valik _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". 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
help:session variable could not retain old data if back button clicked
Hi, can someone give me some help, I stucked here almost 2 days... this is what I did: 1. searchForm.jsp will submit to a servlet 2. the servlet store the search results as an object by coding: request.setAttribute(object name, value); 3. then the servlet will forward to a jsp page to display the data there. RequestDispatcher rd = getServletContext().getRequestDispatcher("/employers/ge/results.jsp?mode=groupSearch"); rd.forward(request,response); 4. results.jsp will retrive data out by coding: request.getAttribute(object name, value); 5. results.jsp will loop through and display all records lines, each line contains couple key attributes such as name, address, phone... the name field will be a hyperlink to details.jsp page to show all the attributes of this records. 6. results.jsp will store the retrived object in a session variable so when the name field link bring to the detail page,the same object can be retrive out there. 7. the results.jsp will dynamic showing [previous] [next] link if the total record count of the results more than 10. 8. on the bottom of results.jsp will has a hyperlink "begin a new search" bring user back to the searchForm.jsp. the above steps are all works fine if I do one search after another. PROBLEMS: 1. if I click the browser back button to previous result page, it looks like the previous results still showing there, but since the session variable already overwriten by the lastest search results, so the details page will has wrong data. 2. if I go back through browser to previous results page and that page has [previous] [next] link, if I click either [previous] or [next] link, then the results will mess up, it will based on the latest results count to recalculate the page number instead of the previous results count. can some one point out how I can retain the old data stroed in session variable if the browser back button clicked?? appreciate your help. Helen _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com. === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". 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
Re: trouble with the back button if I use session variable
Just disable the Back button via Javascript: if (window.history.length > 0) history.forward(); > -Original Message- > From: A mailing list about Java Server Pages specification and reference > [mailto:[EMAIL PROTECTED]]On Behalf Of hua ge > Sent: Wednesday, November 01, 2000 12:25 PM > To: [EMAIL PROTECTED] > Subject: trouble with the back button if I use session variable > > > hi, > > I have a jsp search page searchForm.jsp, the commit button will invoke a > servlet which going to implement the bussiness logic and store the result > object in a session object named "geCollection", then this servlet will > redirect to the result.jsp page and display the results based on the value > stroed in the session variable "geCollection". > > the result.jsp display for the first search is fine. > the result.jsp has a begin a new search link, if I do a new search, the > result.jsp for the new search is also fine. > > the PROBLEM is after I saw the result from new search, if I go > back with the > browser back button to find the previous search result, I noticed that the > previous results page showing the same as the new search results. > > I realized that the reason is everytime the servlet is invoked, > it going to > store the new results in the session object geCollection . on the > result.jsp page, it will retrive out data from geCollection. so > the new data > will overwrite the old one. > > > I play around with some website like "www.dice.com", it does not have this > problem. I'd like to know what is the good way to avoid the above bug > happens??? > > anyone has some suggestion? > higly appreciated. > > > Helen > _ > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. > > Share information about yourself, create your own public profile at > http://profiles.msn.com. > > == > = > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff > JSP-INTEREST". > 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". 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
trouble with the back button if I use session variable
hi, I have a jsp search page searchForm.jsp, the commit button will invoke a servlet which going to implement the bussiness logic and store the result object in a session object named "geCollection", then this servlet will redirect to the result.jsp page and display the results based on the value stroed in the session variable "geCollection". the result.jsp display for the first search is fine. the result.jsp has a begin a new search link, if I do a new search, the result.jsp for the new search is also fine. the PROBLEM is after I saw the result from new search, if I go back with the browser back button to find the previous search result, I noticed that the previous results page showing the same as the new search results. I realized that the reason is everytime the servlet is invoked, it going to store the new results in the session object geCollection . on the result.jsp page, it will retrive out data from geCollection. so the new data will overwrite the old one. I play around with some website like "www.dice.com", it does not have this problem. I'd like to know what is the good way to avoid the above bug happens??? anyone has some suggestion? higly appreciated. Helen _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com. === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". 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
Cleared data on clicking Back button
Hi, How can I ensure that when I press the Browser's back button,the data in the textfields is cleared out in the JSP? Thanks, Raj _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com. === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". 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
Back Button
I there some way to disable the back button using JSP? Cecelia Claybrook Software Engineer, EAI 913-307-7464 === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". 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
Re: Back Button of Browser
There is a very simple way to do it by using Java script. whatever you want here I am using it for our website: http://equipmentauction.in2.net/rel_100listing.cfm Shane Duan Lead Software Developer [EMAIL PROTECTED] EquipmentAuction.com 3315 West 12th Street Houston, TX 77008 P 713 283 6400 This communication may contain confidential information intended only for the person to whom it is addressed. Any use, dissemination, forwarding, printing, or copying of this e-mail without consent of the originator is strictly prohibited. If you have received this e-mail in error, please immediately notify Shane Duan by telephone at (713) 283-6400. -Original Message- From: Shashwati Panigrahi [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 28, 2000 2:46 AM To: [EMAIL PROTECTED] Subject:Back Button of Browser Hi All, I have a button on a page which I want to have the functionality like the Back button on the Browsers Does anyone have the code to be written on the click of this button which will take it to the previous page ? Thanks in Advance, Shashwati === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". 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". 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
Re: Back Button of Browser
Hi Shashwati, You may try out this folowing javaScript:(It Tested By Me) Testing back Button <%@ page language="java" %> function goBack() { window.location.href=history.go(-1); return true; } With Regards, -Amit. - Original Message - From: Reality Mails <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, June 28, 2000 4:02 PM Subject: Back Button of Browser Hi All, I have a button on a page which I want to have the functionality like the Back button on the Browsers Does anyone have the code to be written on the click of this button which will take it to the previous page ? Thanks in Advance, Shashwati === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". 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". 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
Re: Back Button of Browser
> -Original Message- > From: Shashwati Panigrahi [SMTP:[EMAIL PROTECTED]] > Sent: Wednesday, June 28, 2000 1:16 PM > To: [EMAIL PROTECTED] > Subject: Back Button of Browser > > Hi All, > I have a button on a page which I want to have the functionality > like the Back button on the Browsers > Does anyone have the code to be written on the click of this button which > will take it to the previous page ? > Thanks in Advance, > Shashwati > > == > = > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff > JSP-INTEREST". > 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". 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
Re: Back Button of Browser
Or window.history.go(-1) > -Original Message- > From: Andrea Vicentini > Sent: Wednesday, June 28, 2000 1:23 PM > To: [EMAIL PROTECTED] > Subject: Re: Back Button of Browser > > > > or something like this... > > > > > > > Shashwati Panigrahi <[EMAIL PROTECTED]> on 28.06.2000 09:46:15 > > Please respond to "[EMAIL PROTECTED]" > <[EMAIL PROTECTED]> > > To: [EMAIL PROTECTED] > cc:(bcc: Andrea Vicentini/DV/BRAIN) > > Subject: Back Button of Browser > > > > > Hi All, > I have a button on a page which I want to have the functionality > like > the Back button on the Browsers > Does anyone have the code to be written on the click of this button which > will > take it to the previous page ? > Thanks in Advance, > Shashwati > > == > = > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff > JSP-INTEREST". > 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 > > > > BRAIN Development GmbH > Andrea Vicentini > System Engineer e-Business > > Phone:+49 (7151) / 602-332 > Fax: +49 (7151) / 602-372 > Internet: http://www.brainag.com > e-mail:[EMAIL PROTECTED] > [EMAIL PROTECTED] > > == > = > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff > JSP-INTEREST". > 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". 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
Re: Back Button of Browser
or something like this... Shashwati Panigrahi <[EMAIL PROTECTED]> on 28.06.2000 09:46:15 Please respond to "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] cc:(bcc: Andrea Vicentini/DV/BRAIN) Subject: Back Button of Browser Hi All, I have a button on a page which I want to have the functionality like the Back button on the Browsers Does anyone have the code to be written on the click of this button which will take it to the previous page ? Thanks in Advance, Shashwati === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". 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 BRAIN Development GmbH Andrea Vicentini System Engineer e-Business Phone:+49 (7151) / 602-332 Fax: +49 (7151) / 602-372 Internet: http://www.brainag.com e-mail:[EMAIL PROTECTED] [EMAIL PROTECTED] === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". 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
Back Button of Browser
Hi All, I have a button on a page which I want to have the functionality like the Back button on the Browsers Does anyone have the code to be written on the click of this button which will take it to the previous page ? Thanks in Advance, Shashwati === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". 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
Re: Disable back button
Hi Mayuresh, But what was specifically asked was how to disable back button of the browser and not how to return to the previous document using the history object.That feature is not available you can check out the DOMs. Alok. Mayuresh S Kadu wrote: > yep ... they do. Atleast in Javascript. > > > document.history.go(-1); > > > > Presently Netscape and Microsoft DOMs do not offer the facility to access > > back button .It is expected to be implemented in future versions. > > > > === > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". > 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". 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
Re: Disable back button
Hi all, >As I recall this issue has been discussed several times on this forum, with >general agreement that it's impossible. But you can trace this back in the >archives. > I am new here. yes, you can't disable Back button. but you can use javascript in Form::unload() event to do forward to your present page... -> "history.forward();" regards, Yuthasak Buasuwan. >Regards, >Piotr > >-Original Message- >From: A mailing list about Java Server Pages specification and reference >[mailto:[EMAIL PROTECTED]]On Behalf Of Atul Purushan >Sent: Thursday, June 01, 2000 4:32 >To: [EMAIL PROTECTED] >Subject: Disable back button > > >Hi all, >is there any way of disabling the back button of the browser using any >facility in javascript,jsp or servlets and thereby preventing the user from >going back to the previous web page. >thanx in advance. >with regards, >atul. > >=== Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". 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
Re: Disable back button
yep ... they do. Atleast in Javascript. document.history.go(-1); > Presently Netscape and Microsoft DOMs do not offer the facility to access > back button .It is expected to be implemented in future versions. > === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". 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
Re: Disable back button
Presently Netscape and Microsoft DOMs do not offer the facility to access back button .It is expected to be implemented in future versions. Atul Purushan wrote: > Hi all, > is there any way of disabling the back button of the browser using any > facility in javascript,jsp or servlets and thereby preventing the user from > going back to the previous web page. > thanx in advance. > with regards, > atul. > > === > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". > 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". 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
Re: Disable back button
Hi, As I recall this issue has been discussed several times on this forum, with general agreement that it's impossible. But you can trace this back in the archives. Regards, Piotr -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Atul Purushan Sent: Thursday, June 01, 2000 4:32 To: [EMAIL PROTECTED] Subject: Disable back button Hi all, is there any way of disabling the back button of the browser using any facility in javascript,jsp or servlets and thereby preventing the user from going back to the previous web page. thanx in advance. with regards, atul. === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". 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". 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
Disable back button
Hi all, is there any way of disabling the back button of the browser using any facility in javascript,jsp or servlets and thereby preventing the user from going back to the previous web page. thanx in advance. with regards, atul. === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". 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
Re: Browser BACK button
Please refer the archives. This problem has been discussed in great detail many a time. -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of K Ramesh Sent: Friday, May 19, 2000 7:57 PM To: [EMAIL PROTECTED] Subject: Browser BACK button Hello Everybody Is there any way by which we can disable the browsers BACK button using JSP or JavaScripts? Also, Is there any way to selectively clear a segment of the History information in the browser? ie, i want to clear the history contents of a particular website that the user has browsed. Thanks for all your help K Ramesh === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". 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". 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
Re: Browser BACK button
You can use hmtl meta tags pragma to restrict browser not to cache a particular page. But this tag and some other tags may not work properly due to some browser bugs. Baig K Ramesh <[EMAIL PROTECTED]> on 05/19/2000 08:26:52 PM Please respond to A mailing list about Java Server Pages specification and reference <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] cc:(bcc: Imran Baig/CresSoft) Subject: Browser BACK button Hello Everybody Is there any way by which we can disable the browsers BACK button using JSP or JavaScripts? Also, Is there any way to selectively clear a segment of the History information in the browser? ie, i want to clear the history contents of a particular website that the user has browsed. Thanks for all your help K Ramesh === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". 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". 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
Browser BACK button
Hello Everybody Is there any way by which we can disable the browsers BACK button using JSP or JavaScripts? Also, Is there any way to selectively clear a segment of the History information in the browser? ie, i want to clear the history contents of a particular website that the user has browsed. Thanks for all your help K Ramesh === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". 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
Re: Uregent help req how to disable the back button in the browser
If you load the page with the following javascript, the back button will be disabled:
Uregent help req how to disable the back button in the browser
HI Can any one help me How can I disable the back button in the browser in netscape and ie. thanks srini Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". 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
how to capture navigator back button click event
can anyone tell me how can i capture navigator back button click event ? Thanx in advance bramha === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". 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
Re: Back button shows in IE but Not in Netscape???
It´s an HTML error! You have to define the FORM tag, and put the button inside it. - Original Message - From: Gary Osborn <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, April 27, 2000 1:52 PM Subject: Back button shows in IE but Not in Netscape??? > The following test to see if there is anything to > report and if not displays a back button and text. > The button shows up fine in IE but not in Netscape 4.0 > and I can't figure out why. > > <% > if (usageReport.getNumberOfRows() == 0) { > out.println(""); > out.println(""); > out.println(" >"); > out.println(""); > out.println(" SIZE=-1>Item Usage Report"); > out.println(""); > out.println(""); > out.println(""); > out.println(" name=\"back\" value=\"Back\" onClick=\"backBtn()\">"); > out.println(""); > out.println("No items found that match the > search parameters."); > out.println(""); > return; > } > %> > > > = > Gary Osborn > Web Developer > [EMAIL PROTECTED] > > You can lead management to good business solutions, but > you can't make them implement!!! > > __ > Do You Yahoo!? > Talk to your friends online and get email alerts with Yahoo! Messenger. > http://im.yahoo.com/ > > === > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". > 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". 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
Re: Back button shows in IE but Not in Netscape???
Hi Gary, buttons in Netscape are necessary to be between tags. Gary Osborn wrote: > The following test to see if there is anything to > report and if not displays a back button and text. > The button shows up fine in IE but not in Netscape 4.0 > and I can't figure out why. > > <% > if (usageReport.getNumberOfRows() == 0) { > out.println(""); > out.println(""); > out.println(" >"); > out.println(""); > out.println(" SIZE=-1>Item Usage Report"); > out.println(""); > out.println(""); > out.println(""); > out.println(" name=\"back\" value=\"Back\" onClick=\"backBtn()\">"); > out.println(""); > out.println("No items found that match the > search parameters."); > out.println(""); > return; > } > %> > > = > Gary Osborn > Web Developer > [EMAIL PROTECTED] > > You can lead management to good business solutions, but > you can't make them implement!!! > > __ > Do You Yahoo!? > Talk to your friends online and get email alerts with Yahoo! Messenger. > http://im.yahoo.com/ > > === > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". > 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". 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
Re: Back button shows in IE but Not in Netscape???
You need a form around a form element in Netscape, but IE just displays the element anyway -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Gary Osborn Sent: 27 April 2000 07:53 To: [EMAIL PROTECTED] Subject: Back button shows in IE but Not in Netscape??? The following test to see if there is anything to report and if not displays a back button and text. The button shows up fine in IE but not in Netscape 4.0 and I can't figure out why. <% if (usageReport.getNumberOfRows() == 0) { out.println(""); out.println(""); out.println(""); out.println(""); out.println("Item Usage Report"); out.println(""); out.println(""); out.println(""); out.println(""); out.println(""); out.println("No items found that match the search parameters."); out.println(""); return; } %> = Gary Osborn Web Developer [EMAIL PROTECTED] You can lead management to good business solutions, but you can't make them implement!!! __ Do You Yahoo!? Talk to your friends online and get email alerts with Yahoo! Messenger. http://im.yahoo.com/ === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". 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". 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
Back button shows in IE but Not in Netscape???
The following test to see if there is anything to report and if not displays a back button and text. The button shows up fine in IE but not in Netscape 4.0 and I can't figure out why. <% if (usageReport.getNumberOfRows() == 0) { out.println(""); out.println(""); out.println(""); out.println(""); out.println("Item Usage Report"); out.println(""); out.println(""); out.println(""); out.println(""); out.println(""); out.println("No items found that match the search parameters."); out.println(""); return; } %> = Gary Osborn Web Developer [EMAIL PROTECTED] You can lead management to good business solutions, but you can't make them implement!!! __ Do You Yahoo!? Talk to your friends online and get email alerts with Yahoo! Messenger. http://im.yahoo.com/ === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". 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
Browser back button question.
Hi all, Can anybody tell me, how can we capture the browser back button event? thanks in advance, gvd. === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". 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
OT (was: Re: Browser back button)
Hi Divya! On Mon, 03 Apr 2000, Divya M A wrote: > Hello! > Is it possible to disable the browser back button( using Javascript, > etc.)? Or atleat force execution of a user's function on click of browser > back button? The problem is that I have a file on submit of which, I get a > second file. But I don't want the user to resubmit the first file, by > entering into it using the browser back button. Is setting a flag and > checking it each time one enters the file, the only alternative. > Thanx > Divya. Hi, although it's not related to JSP :-) this is how I would do it: * either have two frames , one very thin (hidden). The frameset (top) will act as container. 1. add onSubmit() event handler to the form. When the user submits, set a flag in the top frame (which will persist after page change) return false from it to abort submission 0. :-) on page load, generate dinamically the submit button i.e. if (top.flag == false) { document.writeln ("<input type='submit' value='Upload'>") } So the user will see no submit button (although the submit still works ). * set a cookie with your state, take actions according to it But, all this are in vain if s/he has disabled JS. -- teodor === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". 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
Re: Browser back button
If you are using Model 2 ( ie. the browser is always posting to the front component ). What exactly is the browser caching? I was under the impression that if one used Model 2, lets say Main.jsp, each new page would be served by this JSP, hence the browser would not know that the user had left the Main.jsp front component so hitting back would take them to some other page other then one within your application. Did I dream this, or does this resemble reality. Thanks, Alex __ Do You Yahoo!? Talk to your friends online with Yahoo! Messenger. http://im.yahoo.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". 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
Re: Browser back button
HI Divya you can use location.replace() to replace the current entry in the history of browser with the filename you want. Let me know if you need more information on this. Vaishali __ Get Your Private, Free Email at http://www.hotmail.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". 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
Re: Browser back button
> Hello! > Is it possible to disable the browser back button( using > Javascript,etc.)? No, you can't disable the back button. There is a read-only Javascript attribute for getting access to the button, but you cannot disable it. > Or atleat force execution of a user's function on > click of browser > back button? The problem is that I have a file on submit of > which, I get a > second file. But I don't want the user to resubmit the first file, by > entering into it using the browser back button. Is setting a flag and > checking it each time one enters the file, the only alternative. > Thanx > Divya. You can try to turn caching off on the first page (say first.jsp) and at the top check to make sure the first page is called from some other page (index.jsp). If first.jsp is called from any other page besides index.jsp, redirect and don't load the page. This of course assumes first.jsp at no time gets cached on the user's machine. ryan > > == > = > To unsubscribe: mailto [EMAIL PROTECTED] with body: > "signoff JSP-INTEREST". > 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". 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
Browser back button
Hello! Is it possible to disable the browser back button( using Javascript, etc.)? Or atleat force execution of a user's function on click of browser back button? The problem is that I have a file on submit of which, I get a second file. But I don't want the user to resubmit the first file, by entering into it using the browser back button. Is setting a flag and checking it each time one enters the file, the only alternative. Thanx Divya. === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". 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
Re: Browser's back button
If you are loading different page after the operation (branch or node delete whatever) ,you could say document.location.replace("anotherpage.jsp/html") which will remove the previous URL from the browser history and hence your browser 'back' button won't load the page again. Otherwise,you could use response.setHeader("cache-control", "no-cache") to remove the browser cache and hence the browser 'back' button will re-load the page with current data. Hope this Helps ... with Regards, rathna. Wytas wrote: > Hi, > I'm having one problem. I made a JSP that displays some kind of tree control of a > structure in database. When I browse it and delete some branch or node I can press > back browser's back button some times and then try to access deleted node or > perform some other operation. I get errors. The question is: how can I make these > "past" pages expire? Or is there some way to forward to some page that notifies "Do > not press back button!!!" when back is pressed? > > -- > Vytautas Nuobara > Programmer > No Magic > P.O. box 2166, LT-3000, Kaunas > Phone: +370 7 229424 Fax: +370 7 200536 > Phone: +370 87 66898 > WWW: http://www.nomagic.com > > === > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". > 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". 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
Browser's back button
Hi, I'm having one problem. I made a JSP that displays some kind of tree control of a structure in database. When I browse it and delete some branch or node I can press back browser's back button some times and then try to access deleted node or perform some other operation. I get errors. The question is: how can I make these "past" pages expire? Or is there some way to forward to some page that notifies "Do not press back button!!!" when back is pressed? -- Vytautas Nuobara Programmer No Magic P.O. box 2166, LT-3000, Kaunas Phone: +370 7 229424 Fax: +370 7 200536 Phone: +370 87 66898 WWW: http://www.nomagic.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". 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
Re: Handling The Browser Back Button, et al (tms)
just redirect your page after user hit submit. In that case pressing 'Back' just return to redirected page. I think it is a standard techniques. ColdJava: java server side programming http://coldjava.hypermart.net Get your own FREE, personal Netscape WebMail account today at http://webmail.netscape.com. === To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JSP-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help". For JSP FAQ, http://www.esperanto.org.nz/jsp/jspfaq.html
Re: Handling The Browser Back Button, et al (tms)
"Kirkdorffer, Daniel" wrote: > You know the only problem I have with some of what Craig is saying below, is > that I think that we should stop trying to fight the platform, and start > developing for it. By that I mean we are developing "web" applications, so > they should work with the environment they reside in, the web browser, and > take advantage of the features of the browser. Don't just think of this as > recreating the legacy interfaces they're replacing. The whole concept of > controlling sequence of movement to me is a bit constraining in such an > environment. Users should have more freedom than what they had on a 3270 > terminal 10 years ago, but it would seem that's not what people are willing > to provide. > > That's not to say I'm discounting the challenge. > > Just my .2 cents. > > Dan > I can sympathize with Dan's feelings, and even agree with them to a degree. But it seems to me that (for transactional processing or other state-dependent applications, at least), we are having to fight with the platform quite a bit already: * Why should a servlet/JSP author have to mess with session management in the first place? Because HTTP is stateless, and doesn't support it. * Why do we have to curse HTML (and browser developers) trying to get halfway decent looking screen layouts? Because HTML was not designed for this, and the recent innovations to help (DHTML and stylesheets) are still implemented incompletely, incompatibly, and with lots of bugs. * Why can't we build "interactive" apps like you can with a GUI, where the UI changes dynamically as you're inputting things? Well, this is changing with DHTML, but we're not there yet. In the mean time, designers are constrained to the frame-at-a-time sort of style that typified 3270 screen-at-a-time applications. * Why can't I disable screen controls like Back and Forward when their actions are not relevant? Because there's no standard mechanism to make this possible. It's only becoming possible to even disalbe a text input field, or a check box, when it's contents are not relevant. The whole concept of GUI interfaces was created to improve on the 3270 terminal style of interaction, and it made a huge difference. But if you look a little closer, you see that well-written GUI apps are often still very modal -- they enable and disable screen controls (menu options, buttons, input fields, and so on) on the fly. It just looks a lot prettier. If I could do that with HTML, I'd feel a lot better about leaving the screen controls visible. But the real key goes back to the requirements of the application -- no matter what media you use to present it. Some apps require logical steps to be performed in a certain sequence. With a 3270 app, or a client/server GUI app, that's pretty simple to enforce. With the current generation of browsers, that's a lot harder to do technically, and ths problem is excaberated by the fact that users are used to navigating at will around web sites, and that is their mindset whenever they sit down to a browser. Yes, you can (without too much pain) make your web app recognize what state it expects, and politely complain if the user does things out of order (much better than crashing :-). But I don't think that is what Dan was getting at -- it really starts with application design. If your application can be designed to be reasonably stateless, then by all means do so. But if you can't, you still have to enforce modal behavior as required -- and the fewer chances you give users to make a mistake in the first place, the better off you're going to be. Craig McClanahan === To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JSP-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help". For JSP FAQ, http://www.esperanto.org.nz/jsp/jspfaq.html
Re: Handling The Browser Back Button, et al (tms)
You know the only problem I have with some of what Craig is saying below, is that I think that we should stop trying to fight the platform, and start developing for it. By that I mean we are developing "web" applications, so they should work with the environment they reside in, the web browser, and take advantage of the features of the browser. Don't just think of this as recreating the legacy interfaces they're replacing. The whole concept of controlling sequence of movement to me is a bit constraining in such an environment. Users should have more freedom than what they had on a 3270 terminal 10 years ago, but it would seem that's not what people are willing to provide. That's not to say I'm discounting the challenge. Just my .2 cents. Dan > -- > From: Craig R. McClanahan[SMTP:[EMAIL PROTECTED]] > Reply To: Craig McClanahan > Sent: Tuesday, August 17, 1999 12:25 PM > To: [EMAIL PROTECTED] > Subject: Re: Handling The Browser Back Button, et al (tms) > > Frank Starsinic wrote: > > > Are there standard techniques for preventing a user from using the back > button > > in the > > browser and modifying and re-submitting a form? This issue has caused us > serious > > problems > > in the past and we are wondering how other people handle this. > > i'm not so sure we should be worried about the Back Button as much as > how to > > handle the situation if someone did try that by mistake. > > > > i guess not caching the page could be one quasi-solution? but what other > > techniques are used? > > > > One thing I do that helps avoid this problem (but certainly doesn't > eliminate it) > is to open my JSP-based app in a new window that does not have back > buttons, > location bars, or any of that stuff. Visually, it looks much more like a > standard > GUI application when you do this, so users are more likely to "get it" > that this is > a transactional application system, not a browsable web site. Of course, > this > still doesn't foil the savvy users that know about the right mouse menu or > the > keyboard shortcuts ... > > Also, it's possible that continued use of the "Back" button by users might > be an > indicator that some additional navigational controls would be useful in > the user > interface. > > > > > what about something in the session that indicates that the page has > been > > processed already?? > > > > This is a much better solution -- your app knows what stage of processing > it is > expecting next, so it can reject input that comes in out of sequence. > > > > > we also have concerns about a user bringing up 2 different browsers at > the same > > time OR 2 browser windows and working on seperate parts of the app at > the same > > time. > > > > This is a valid concern, because often the two windows will share the same > servlet/JSP session. State management checking, as you proposed above, > will help > here. In addition, since I'm opening my app in a new window, I specified > a > particular target window name, so that the user cannot open the app more > than once. > > > > > our app is heavily workflow intensive and these issues have caused > problems in > > the past. > > > > As browser-based applications start to proliferate, all developers need to > continually educate users to use ONLY the navigation controls provided by > the apps, > instead of surfing and bookmarking the usual way (unless your app is smart > enough > to deal with the real life behavior under all circumstances). > > > > > thanks, > > > > frank > > > > Craig McClanahan > > == > = > To unsubscribe, send email to [EMAIL PROTECTED] and include in the > body > of the message "signoff JSP-INTEREST". For general help, send email to > [EMAIL PROTECTED] and include in the body of the message "help". > For JSP FAQ, http://www.esperanto.org.nz/jsp/jspfaq.html > === To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JSP-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help". For JSP FAQ, http://www.esperanto.org.nz/jsp/jspfaq.html
Re: Handling The Browser Back Button, et al (tms)
Frank Starsinic wrote: > Are there standard techniques for preventing a user from using the back button > in the > browser and modifying and re-submitting a form? This issue has caused us serious > problems > in the past and we are wondering how other people handle this. > i'm not so sure we should be worried about the Back Button as much as how to > handle the situation if someone did try that by mistake. > > i guess not caching the page could be one quasi-solution? but what other > techniques are used? > One thing I do that helps avoid this problem (but certainly doesn't eliminate it) is to open my JSP-based app in a new window that does not have back buttons, location bars, or any of that stuff. Visually, it looks much more like a standard GUI application when you do this, so users are more likely to "get it" that this is a transactional application system, not a browsable web site. Of course, this still doesn't foil the savvy users that know about the right mouse menu or the keyboard shortcuts ... Also, it's possible that continued use of the "Back" button by users might be an indicator that some additional navigational controls would be useful in the user interface. > > what about something in the session that indicates that the page has been > processed already?? > This is a much better solution -- your app knows what stage of processing it is expecting next, so it can reject input that comes in out of sequence. > > we also have concerns about a user bringing up 2 different browsers at the same > time OR 2 browser windows and working on seperate parts of the app at the same > time. > This is a valid concern, because often the two windows will share the same servlet/JSP session. State management checking, as you proposed above, will help here. In addition, since I'm opening my app in a new window, I specified a particular target window name, so that the user cannot open the app more than once. > > our app is heavily workflow intensive and these issues have caused problems in > the past. > As browser-based applications start to proliferate, all developers need to continually educate users to use ONLY the navigation controls provided by the apps, instead of surfing and bookmarking the usual way (unless your app is smart enough to deal with the real life behavior under all circumstances). > > thanks, > > frank > Craig McClanahan === To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JSP-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help". For JSP FAQ, http://www.esperanto.org.nz/jsp/jspfaq.html
Re: Handling The Browser Back Button, et al (tms)
Frank, What I usually do is after I handle the data from a form submit, I send a redirect header to display the response page. This way if the user clicks reload, it just reloads the page they were redirected to. If the user clicks back, it takes them back to the original form. At this point, if they click "Submit" it will have no impact since I clear the shopping cart or mark it as sold when I process the submit. What I will do is redirect to an error page that says "You have already submitted an order", and I would redisplay the confirmation information. Mike -Original Message- From: Frank Starsinic [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 17, 1999 12:53 PM To: [EMAIL PROTECTED] Subject: Handling The Browser Back Button, et al (tms) Are there standard techniques for preventing a user from using the back button in the browser and modifying and re-submitting a form? This issue has caused us serious problems in the past and we are wondering how other people handle this. i'm not so sure we should be worried about the Back Button as much as how to handle the situation if someone did try that by mistake. i guess not caching the page could be one quasi-solution? but what other techniques are used? what about something in the session that indicates that the page has been processed already?? we also have concerns about a user bringing up 2 different browsers at the same time OR 2 browser windows and working on seperate parts of the app at the same time. our app is heavily workflow intensive and these issues have caused problems in the past. thanks, frank === To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JSP-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help". For JSP FAQ, http://www.esperanto.org.nz/jsp/jspfaq.html === To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JSP-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help". For JSP FAQ, http://www.esperanto.org.nz/jsp/jspfaq.html
Handling The Browser Back Button, et al (tms)
Are there standard techniques for preventing a user from using the back button in the browser and modifying and re-submitting a form? This issue has caused us serious problems in the past and we are wondering how other people handle this. i'm not so sure we should be worried about the Back Button as much as how to handle the situation if someone did try that by mistake. i guess not caching the page could be one quasi-solution? but what other techniques are used? what about something in the session that indicates that the page has been processed already?? we also have concerns about a user bringing up 2 different browsers at the same time OR 2 browser windows and working on seperate parts of the app at the same time. our app is heavily workflow intensive and these issues have caused problems in the past. thanks, frank === To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JSP-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help". For JSP FAQ, http://www.esperanto.org.nz/jsp/jspfaq.html