getwriter « Forward « JSP-Servlet Q&A





1. can we do getwriter and forward in a single servlet    stackoverflow.com

Lets say my form called a servlet. I would do some processing in it. In the servlet i want to print something on the page. for that i used

PrintWriter out=response.getWriter();
 out.println("some ...