This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Incomplete request problem

 
Manish Chhetri
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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..
 
Codec Guy
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13058
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic