//記住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");
}
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");
}