aspose file tools*
The moose likes Servlets and the fly likes HttpClient Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "HttpClient" Watch "HttpClient" New topic


hanihanan younis
Ranch Hand

Joined: Jul 06, 2005
Posts: 36
hello all..i want to ask can i use this class from apache to open connection in a url inside the servlet..i want to use the time out property inside it..if not please tell me about any way to use time out feature with any class
thanx all
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

Yes, you can use it from a servlet.

What are you trying to do with the timeout feature?

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
hanihanan younis
Ranch Hand

Joined: Jul 06, 2005
Posts: 36
thanx a lot for answering me..what i try to do is if the url go to it is down or no response the timeout finish the work without make problem to another requests to my servlet
thanx again
I agree. Here's the link:
subject: HttpClient
Similar Threads
variable declaration and object creation in side loop
Method to return next object from a List
Changing property value of an object in session with Struts2 tags
selecting frrom database in multithreaded environment
Reuse database connection class