You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Stefan Trcko <st...@aladin-eng.si> on 2003/10/14 12:02:49 UTC

java.net.URL

Hello

I'm using java.net.URL to get content from other web site.
The problem is when this url address which I want to open (openConnection())
is very slow. When this happens I want that some kind of time out exception
is thrown
(and the content of this other web site on my site is not shown).
How to check that the url cannot be open in for example 2 seconds (and
after this 2 second throw an time out exception)

Regards
Stefan




---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org