I am building a web application, it has different links to move across different pages. Say there are 4 links a,b,c and d. If i am currently in link 'b', and then click on link 'a' and then click immediately on the browser stop button, the action is not complete, but i think some part of the servlet code is already executed and some parameters have been updated. Now when i perform a request operation on using the current link i.e. b the selected link option shifts to 'a'. Soon after i get an invalid user login error. Someone..please help..really critical..
The One..
Codec Guy
Greenhorn
Joined: Aug 02, 2004
Posts: 2
posted
0
Hi, Are you embedding userid with url? If yes, it may become null due to browser stop button, some time. Then u can try to put userid on session. It will be convenient. Regards, Gajanan
William Brogden
Author and all-around good cowpoke
Rancher
Joined: Mar 22, 2000
Posts: 12271
1
posted
0
If you send a request and then hit the browser stop button before the response is completed, your servlet should see an IOException due to the socket being closed before the response is finished. You can catch that exception and use it to correct the recorded information. How to do that depends on how the information gets stored. Bill