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.