Chris, Thanks a lot for your reply...here are my answers for your questions..
On Thu, Oct 11, 2012 at 8:34 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Chinmoy, > > On 10/11/12 10:55 AM, Chinmoy Chakraborty wrote: > > I am using Tomcat 7.0.29 and I have an application which uses JSF > > 1.2. All my .htm requests are mapped to faces Servlet. On login it > > allows to me go x.htm and renders the page nicely but when I press > > BACK button of the browser internally it calls > > "*window.location.href = "/x.htm*"; and it gives 404 error in > > FireFox only (in IE it works fine). in *Tomcat 6.0.24*it works fine > > both in FF and IE. Following is the exact error: > > > > HTTP Status 404 - /x.htm ------------------------------ > > > > *type* Status report > > > > *message* */x.htm* > > > > *description* *The requested resource (/x.htm) is not available.* > > ------------------------------ Apache Tomcat/7.0.29 > > We need more information: > > What happens when you hit http://yourserver/x.htm (without logging-in > first)? > ---->> If I try this url it redirects me to the login page. in tomcat log i see this: 127.0.0.1 - - [12/Oct/2012:10:03:45 +0530] "GET /WL/x.htm HTTP/1.1" 302 - 127.0.0.1 - - [12/Oct/2012:10:03:45 +0530] "GET /WL/x1.htm HTTP/1.1" 200 5477 , (x1.htm is my login page) > > What exact mechanism do you use to "call window.location.href='/x.htm'"? > ---->> I call this js method on window unload event... > > What URL shows in the browser bar when you try to hit the back button > and the above javascript executes? > ----->> it shows http://myserver/x.htm?custom variable=custom value (at this point server finds x.htm and renders nicely) > > > Could you please let me know where I am going wrong? (basically my > > goal is to do something equivalent to disabling back button). > > You know that's impossible, right? If you don't want your users to go > "back", then you'll have to provide a custom client. Look into Mozilla > Prism (now Chromeless). It at least used to allow you to specify which > features to support -- like whether or now BACK was supported. > --->> I am aware of this but what you propose is not an option for me. > > - -chris > -----BEGIN PGP SIGNATURE----- > Version: GnuPG/MacGPG2 v2.0.17 (Darwin) > Comment: GPGTools - http://gpgtools.org > Comment: Using GnuPG with Mozilla - http://www.enigmail.net/ > > iEYEARECAAYFAlB23/gACgkQ9CaO5/Lv0PDkfwCfeN/0gdjp2DPAw+9pxvWmDQsx > SWAAn0YCkWmmbR0pPsGhezXIoBlyCxef > =bRay > -----END PGP SIGNATURE----- > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >