*
The moose likes Servlets and the fly likes Info is never sent to SQL. Can someone shed some light 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 "Info is never sent to SQL. Can someone shed some light" Watch "Info is never sent to SQL. Can someone shed some light" New topic
Author

Info is never sent to SQL. Can someone shed some light

john mattucci
Ranch Hand

Joined: Nov 03, 2000
Posts: 331
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 No information is being stored in sql however. My question is should the information still be stored since close() is called in the end? Or the information is never sent trough because of the error regardless of where it takes place.

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();
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Info is never sent to SQL. Can someone shed some light
 
Similar Threads
servlet/applet communication problem
IOException when i close a stream in Applet WHY!!!!
servler does not read two strings.
Applet can't find Servlet file
applet-servlet communication: Error writing to server