wood burning stoves 2.0*
The moose likes JSP and the fly likes set Request timeout dynamicaly Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "set Request timeout dynamicaly" Watch "set Request timeout dynamicaly" New topic
Author

set Request timeout dynamicaly

Isuru Jay
Greenhorn

Joined: May 09, 2012
Posts: 7

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

Joined: Jul 23, 2008
Posts: 296

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: set Request timeout dynamicaly