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