- 重定向:就是要求浏览器跳转到新的页面
运行responseTest2重定向到responseTest1URL。
response对象的常用方法:
sendError(int number)----使用指定的状态码向客户发送错误响应
sendError(int number,String msg)----使用指定的状态码和描述性消息向客户发送错误响应
sendRedirect(String location)----使用指定的重定向位置URL向客户发送重定向响应,可使用相对URL。
The request sent by the client was syntactically incorret—客户端发送的请求在语法上不正确
4开头 客户端出现问题
5开头 服务端出现问题