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

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/30 03:39:24
多个jsp页面调用同个servlet时出现错误Cannot call sendRedirect() after the response has been committed
xŐOJ@2KI. MNBfp(bF(h+-7B&T/33z.~{c\L=E5YtCѹ\ݽɫJ$y~Pp:OP^.?8$).XP0 Y mk_ mf$j6oؿB*j06f]&8IƩ(_l+#6r+*.?u^h6'Η.o(ݔ3M,?V.4

多个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()之前而不是之后