The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
November 2001

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

RE: URLConnection in a Servlet

Posted by Brian Sanders on November 20, 2001 at 5:09 PM

The best way to do this depends on your particular application. In general, you open a URLConnection with the method URL.openConnection(). However, with a servlet there are many ways you can retrieve/proxy/filter the contents of a page. You might put some time into verifying that this is the best way to handle the situation.

You can find several object pooling implementations in the Jakarta Commons project.



Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us