title: How to send redirect to JSP page in Servlet
body: <p>When I'm done processing in a servlet, and the result is valid, then I need to redirect the response to another JSP page, say <code>welcome.jsp</code> in web content folder. How can I do it?</p>
  
  <p>For example:</p>
  
  <pre><code>protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
      try {
  
           // Some processing code here ...
  
           // How do I redirect to another JSP here when I'm ready?
  
      } catch (Exception e) {
          throw new ServletException(e);
      }
  }
  </code></pre>