摘要:
请求转发 概念:是一种在服务器内部实现跳转的方式 1.步骤 request.getRequestDispatcher("path").forward(requset,response);path:请求转发的路径只能是当前服务器中的内部资源 forward:转发的资源 2.特点①浏览器地址的路径不会发 阅读全文
摘要:
例子:登陆失败后重新返回登陆页面 第一次请求就是客户端发来的HTTP的请求,http://localhost:8080/day13/login.jsp的请求 服务器的sendRedirect方法对请求发出响应,响应头中有重定向的地址http://localhost:8080/day13/login. 阅读全文