界面跳转报错 Cannot forward after response has been committed

界面跳转报错 Cannot forward after response has been committed

 

 意思就是在使用response.sendRedirect()或者request.getRequestDispatcher(args).forward(request,response)进行页面跳转时,后面还有未执行完的语句,解决方法就是在界面跳转语句时加return;或者竟可能把跳转语句加到末尾。

上一篇:06-根据id查询客户


下一篇:upload-labs文件上传漏洞靶场1-14关