@Resource
private LoginService loginService;
public String setMyVisitInfo() {
ActionContext.getContext().getSession().put("ctx", ServletActionContext. getRequest().getContextPath());
Authentication au = null;
if (SecurityContextHolder.getContext() != null)
au = SecurityContextHolder.getContext().getAuthentication();
if (au == null || au.getName() == null || au.getName().length() == 0) {
SecurityContextHolder.clearContext();
return "error";
} else {
MyVisit myVisit = new MyVisit();
myVisit.setLoginInfoMap(this.loginService.saveLoginInfo(au.getName(), ServletActionContext. getRequest().getRemoteAddr()));
ActionContext.getContext().getSession().put("myVisit",myVisit);
ActionContext.getContext().getSession().put(Constants_core.LOGIN_IP, ServletActionContext. getRequest().getRemoteAddr());
// ServletActionContext. getRequest().getSession().setAttribute("myVisit",myVisit);
// ServletActionContext. getRequest().getSession().setAttribute(Constants_core.LOGIN_IP, ServletActionContext. getRequest().getRemoteAddr());
List<Map> listXTGN = getListXTGN(myVisit);