I want to jump from one JSP page to other JSP page by clicking submit button. How to do that in easy way?
+2
A:
- use
<form action="page2.jsp">
- or submit to a servlet using
<form action="targetServlet">
, and then:- redirect to page2, using
response.sendRedirect("page2.jsp")
- or forward to page2, using
request.getRequestDispatcher("page2.jsp").forward()
- redirect to page2, using
Bozho
2010-06-16 07:15:36
what u have suggested is fine but is there any way of doing without using servlet....like any html tag or jsp tag
Bipul
2010-06-16 07:19:16
the first option is exactly such - you only use `<form>`
Bozho
2010-06-16 07:38:29