Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

set Request timeout dynamicaly

 
Isuru Jay
Greenhorn
Posts: 9
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am working with a web application and it is running on a mobile browsers too. For counting the number of requests every jsp page connect with a another server and count the request.

Like this <img width="1" height="1" alt="tag" src="http://www.aaabbb.com" />

Sometimes jsp page cannot connect with the server and jsp page continuously try to connect with the server until the global timeout. But in this point if the jsp page cannot connect with the server I need to stop trying to connect. I can't use javascript for that as some old mobile browser don't support javascript. Is it possible to set timeout from that event or should I need to do something else?

Please be kind enough to help me to solve this.

Thanks...
 
jatan bhavsar
Ranch Hand
Posts: 299
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Isuru,

Try to return something from the server in response object based on which you can the decision whether your jsp successfully connetcted to the server or not?

Regards
Jatan
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic