File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Incomplete request problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Incomplete request problem" Watch "Incomplete request problem" New topic

Incomplete request problem

Manish Chhetri

Joined: Oct 31, 2003
Posts: 11

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

Joined: Aug 02, 2004
Posts: 2
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.
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13036
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.
I agree. Here's the link:
subject: Incomplete request problem
It's not a secret anymore!