Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to manage time out connection?  RSS feed

 
zhang bo
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there!
Got a problem.
Suppose a Jsp page send request to a server, and if no response in certain time (50 seconds for example), redirect to an error page showing some informations.
How to manage it?
Will it be ok if I use a timer and fire event when certain time passed without response to let jsp redirect? How to manage that? I mean how to interrupt the request and redirect?
Thx in advance!
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!