IntelliJ Java IDE
The moose likes Applets and the fly likes URLConnection Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Applets
Reply Bookmark "URLConnection" Watch "URLConnection" New topic
Author

URLConnection

Randall Twede
Ranch Hand

Joined: Oct 21, 2000
Posts: 3901
I am doing a GET from an applet. According to the article I read, this is all I need:
<HR></BLOCKQUOTE>
I am wondering why there is no try block and why the connection is not closed.
Well the compiler says I must handle MalformedURLException and IOException.
I am having a problem though see this thread: http://www.javaranch.com/ubb/Forum7/HTML/002104.html

[This message has been edited by Randall Twede (edited February 09, 2001).]


I never took notes in college. That's how I got a 4.0 the first 2 years, and a 3.5 the second two years.
 
 
subject: URLConnection
 
Threads others viewed
two questions
How to invoke servlet from an application
problem displaying contents containing HTML tags as it is in a JSP page
doGet() & doPost()
RedWorm Attack
IntelliJ Java IDE