replace PrintWriter with jsps