实现方法:定义一个form,action写servlet的地址即可跳转。 参考代码如下: Test username: password: 在servlet中的配置: PageName /success.html PageName /user/*