 跟我学Shiro - 张开涛urlPatterns = "/login") public class LoginServlet extends HttpServlet { @Override protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { 跟我学 Shiro——http://jinnianshilongnian.iteye.com/ 68 1、doGet 请求时展示登录页面; 2、doPost 时进行登录,登录时收集 username/password 参数,然后提交给 Subject 进行登录。 如果有错误再返回到登录页面;否则跳转到登录成功页面(此处应该返回到访问登录页面 "/formfilterlogin") public class FormFilterLoginServlet extends HttpServlet { @Override protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {0 码力 | 219 页 | 4.16 MB | 10 月前3 跟我学Shiro - 张开涛urlPatterns = "/login") public class LoginServlet extends HttpServlet { @Override protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { 跟我学 Shiro——http://jinnianshilongnian.iteye.com/ 68 1、doGet 请求时展示登录页面; 2、doPost 时进行登录,登录时收集 username/password 参数,然后提交给 Subject 进行登录。 如果有错误再返回到登录页面;否则跳转到登录成功页面(此处应该返回到访问登录页面 "/formfilterlogin") public class FormFilterLoginServlet extends HttpServlet { @Override protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {0 码力 | 219 页 | 4.16 MB | 10 月前3
共 1 条
- 1













