JSP multiple WebServlet URL pattern with different Request Dispatch
<pre><code>@WebServlet(
        name = "HomeServlet",
        description = "Homepage Servlet Configuration",
        urlPatterns = {"/HomeServlet", "/RegisterServlet"}
)
public class HomeServlet extends HttpServlet {
    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        // TODO Auto-generated method stub
        RequestDispatcher dispatcher= request.getRequestDispatcher( "/WEB-INF/pages/index.jsp" );
        dispatcher.forward( request, response );
        RequestDispatcher dispatcher= request.getRequestDispatcher( "/WEB-INF/pages/register.jsp" );
        dispatcher.forward( request, response );
    } 
    protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {

    }
}
</code></pre>

<p>So far i only configured my Java Servlet for HomeServlet which redirects to Index.jsp when my HTML Front End Form gets Submitted.</p>

<p><strong>EDIT:</strong>
My question is how to redirect the specific URL pattern to my different jsp pages.</p>