wood burning stoves 2.0*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Incomplete request problem" Watch "Incomplete request problem" New topic
Author

Incomplete request problem

Manish Chhetri
Greenhorn

Joined: Oct 31, 2003
Posts: 11
Hi

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
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: 12761
    
    5
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Incomplete request problem
 
Similar Threads
Is this a session issue ?
appending processing instruction
Command Link not working after navigating to other pages
Incomplete request problem
Needed a logic?