Cannot call sendRedirect() after the response has been committed
来源:互联网 发布:杭州数据分析师招聘 编辑:程序博客网 时间:2024/05/22 10:58
try {
typeNum = LoginBiz.login(username, password);
if(typeNum==-1){
request.getRequestDispatcher("LoginForm.jsp").forward(request, response);
}
request.getSession().setAttribute("user",Globle.user);
if(typeNum==0){
request.getRequestDispatcher("admin.jsp").forward(request, response);
}else if(typeNum==1){
request.getRequestDispatcher("boss.jsp").forward(request, response);
}else{
request.getRequestDispatcher("commen.jsp").forward(request, response);
}
} catch (Exception e) {
response.sendRedirect("LoginForm.jsp");
}
0 0
- Cannot call sendRedirect() after the response has been committed
- Cannot call sendRedirect() after the response has been committed
- Cannot call sendRedirect() after the response has been committed
- Cannot call sendRedirect() after the response has been committed
- Cannot call sendRedirect() after the response has been committed 解决方案
- java.lang.IllegalStateException: Cannot call sendRedirect() after the response has been committed
- [error handle][java web]Cannot call sendRedirect() after the response has been committed
- java.lang.IllegalStateException: Cannot call sendRedirect() after the response has been committed
- 报错:Cannot call sendRedirect() after the response has been committed/HTTP Status 405
- java.lang.IllegalStateException: Cannot call sendRedirect() after the response has been committed
- Servlet 发生异常: Cannot call sendRedirect() after the response has been committed!
- Java.lang.IllegalStateException: Cannot call sendRedirect() after the response has been committed
- 逻辑没错但是报:Cannot call sendRedirect() after the response has been committed/HTTP Status 405
- Cannot call sendError() after the response has been committed
- Cannot call sendError() after the response has been committed
- Cannot call sendError() after the response has been committed
- Cannot call sendError() after the response has been committed
- Cannot call sendError() after the response has been committed
- 黑马程序员 个人对JDK1.5新特性的一点总结
- 用struct模块处理二进制数据
- Codeforces #248 (Div. 2) B. Kuriyama Mirai's Stones
- Linux自学shell命令
- 线性判别分析(LDA)- 主成分分析(PCA)
- Cannot call sendRedirect() after the response has been committed
- Android Fragment 使用教程(一)
- 每天进步一点点——Linux中的线程局部存储(二)
- UIButton属性
- PHP 5.3.0以上推荐使用mysqlnd驱动
- WPF listbox实现多列展示数据如此简单
- 【iOS】UIColor+Change颜色类的类目扩展
- Ubuntu服务器下配置 jdk 环境
- SharePoint 通过客户端API访问SharePoint状态栏