Meaningless Drivel is fun!
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

set Request timeout dynamicaly

Isuru Jay

Joined: May 09, 2012
Posts: 9


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="" />

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.

jatan bhavsar
Ranch Hand

Joined: Jul 23, 2008
Posts: 297

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?

I agree. Here's the link:
subject: set Request timeout dynamicaly
It's not a secret anymore!