多个jsp页面调用同个servlet时出现错误Cannot call sendRedirect() after the response has been committed

来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/19 00:54:56
多个jsp页面调用同个servlet时出现错误CannotcallsendRedirect()aftertheresponsehasbeencommitted多个jsp页面调用同个servlet时出现

多个jsp页面调用同个servlet时出现错误Cannot call sendRedirect() after the response has been committed
多个jsp页面调用同个servlet时出现错误Cannot call sendRedirect() after the response has been committed

多个jsp页面调用同个servlet时出现错误Cannot call sendRedirect() after the response has been committed
这个错误是不你条用多个jsp调用同意个servlet的错误...而是在sendRedirect()后在去提交.说白了,这是以后总逻辑错误.
你的提交应该是sendRedirect()之前而不是之后