Tim Quick

Greenhorn
+ Follow
since Jul 22, 2011
Tim likes ...
Mac OS X Java
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Tim Quick

Try changing the finally { } clause to something like this:

finally{
out.println("<html><body>");
out.println(ID+": file saved");
out.println("</body></html>");

}

That's the bare bones version of html necessary for your browser to render.

Good luck!
Tim
10 years ago
The log seems to indicate that the JDBC driver can't connect to the database server socket. Are you sure the database connection URL is correct? Is there a database running on port 3304?

10 years ago
JSP
I would suggest using a PrintWriter rather than a DataOutputStream if you want readable text in your file.

PrintWriter _FileWriter = new PrintWriter(new FileOutputStream("c:\\filedata.txt",true));
_FileWriter.println( ID + "," + name + "," + FName + "," + Address + "," + Age + "," + City);
_FileWriter.close();

Regards,
Tim
10 years ago