This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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
selecting frrom database in multithreaded environment
variable declaration and object creation in side loop
Changing property value of an object in session with Struts2 tags
Reuse database connection class
Method to return next object from a List