java - How to go from one JSP page to other by clicking submit button? -
I want to jump from one JSP page to another JSP page by clicking the submit button. How to do it in a simple way?
- use
& lt; Submit form = "
- or
form form =" targetServlet "& gt;
to the servlet, and Then:- Redirect to Page 2,
- or
- or by using
response.sendRedirect ("page2.jsp") Forward to 2, using
request.getRequestDispatcher ("page2.jsp"). Next ()
Comments
Post a Comment