2 messages in com.mysql.lists.javaRe: accessing MySQL from servlet - co...
FromSent OnAttachments
Gunnar Baldwin23 Mar 2000 07:17 
Cris Perdue23 Mar 2000 07:53 
Subject:Re: accessing MySQL from servlet - connection broken
From:Cris Perdue (cr@perdues.com)
Date:03/23/2000 07:53:45 AM
List:com.mysql.lists.java

I have included "System.out.println" statements throughout my program and am getting results of my query correctly printed to the dos command line, but the servlet will not return those results to my browser window ("connection reset by peer" and "a connection with the server" (-back to the JWS). How do I handle the JWS and mySQL on 2 different ports? Somehow my connection with the JWS is being interrupted.

It's a bit hard to think what may be going wrong, but you should try calling out.checkError() periodically. The PrintWriter may be catching any IOExceptions, which would explain why output is reaching System.out but not the web browser.