//记住URL
UserVO user = (UserVO) session.getAttribute(Constants.SESSION_USER);
if (user == null) {
String str = request.getRequestURL().toString();
String quryStr = request.getQueryString();
String url = str + "?" + quryStr;
session.setAttribute("url", url);
}
//获取URL
String redrectUrl = request.getParameter("redUrl");
//检查是否存在有最后URL
if (redrectUrl != null&&!redrectUrl.equals("")) {
forward.setRedirect(true);
forward.setPath(redrectUrl);
return forward;
}else{
forward.setPath("/index/home/index.do?oper=gotoHome");
}
posted on 2010-05-15 14:52
jeanx 阅读(215)
评论(0) 编辑 收藏