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(true);
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();
out.close();out.close();