What the PrintWriter wrote in your servlet should be what is read with your reader on the client side. What content does the client side read? Are you sending data to the servlet via an HTTP POST...