Chain. DoFilter (the req, resp);
System. The out. Println (" f2 ");
Chain. DoFilter (the req, resp);
}
@ WebServlet (name="Servlet1," urlPatterns="/s1")
Public class Servlet1 extends the HttpServlet {
Protected void doPost (it request, HttpServletResponse response) throws ServletException, IOException {
The response. GetWriter (). Println (" suc ");
}
To ask you, the console output 4 f2, two suc pages to print, because of what? According to my understanding, click on the button, a jump/s1, the request filtering/s1 resources, output a f2, a suc, don't know what went wrong?