protected void doPost(HttpServletRequest request,
HttpServletResponse response) throws ServletException, IOException {
....
....
getServletContext().getRequestDispatcher("/output.jsp").forward(request, response);
}
What I need is not to redirect into another JSP page at the end of doPost. I have a string (plane text), I need to response it as for the Servlet request. How can I do this?
you can do it like this: