I have a jsp page (say, source.jsp) with the form:
<html>
<head>
<body>
<form action="Servlet123" method="POST">
// form fileds ...
</form>
</body>
</head>
</html>
And required doPostin the servlet -
@WebServlet("/Servlet123")
public class Servlet123 extends HttpServlet {
protected void doPost(HttpServletRequest request,
HttpServletResponse response) throws ServletException, IOException {
}
}
How can I get a page (in this case - source.jsp) by sending a request to this servlet? Is there a method in the request / session?
source
share