Chinaunix首页 | 论坛 | 博客
  • 博客访问: 342066
  • 博文数量: 76
  • 博客积分: 2790
  • 博客等级: 少校
  • 技术积分: 882
  • 用 户 组: 普通用户
  • 注册时间: 2008-08-13 09:15
个人简介

Will do as will say

文章分类

全部博文(76)

文章存档

2013年(7)

2012年(13)

2011年(2)

2009年(2)

2008年(52)

我的朋友

分类: Java

2008-08-22 11:48:18

if(session==null||session.getAttribute("Rand")==null){
   
   response.sendRedirect(request.getContextPath()+"/reg.jsp");
  }
执行此代码,抛出java.lang.IllegalStateException
解决方法,加 return
if(session==null||session.getAttribute("Rand")==null){
   
   response.sendRedirect(request.getContextPath()+"/reg.jsp");
return;
  }
阅读(1535) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~