The Artima Developer Community
Sponsored Link

Java Answers Forum
getting ioexception when closing stream in applet WHY!!

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
john mattucci

Posts: 8
Nickname: mats26
Registered: Apr, 2002

getting ioexception when closing stream in applet WHY!! Posted: Jul 18, 2002 12:24 PM
Reply to this message Reply
Advertisement
I have an applet which connects to a servlet which in turn connect to sql.I get the following error however IOEXception at java/io/ObjectOutputStream.close
Thank u all for your time
URL dataURL = new URL("http://servename/Servlet/Serve");
URLConnection connection = dataURL.openConnection();
connection.setDoInput(true);
connection.setDoOutput(t rue);

connection.setUseCaches (false);
connection.setDefaultUseCaches (false);
connection.setRequestProperty ("Content-Type", "application/octet-stream");

ObjectOutputStream out = new ObjectOutputStream(connection.getOutputStream());
out.writeObject(getTextField1 ().getText());
out.flush();
out.close();

Topic: explorer doesn't load applets Previous Topic   Next Topic Topic: Java getPrintJob properties

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use