package com.xbkj.web.location;
import com.sanmen.web.AbstractAction;
import com.xbkj.web.location.domain.Users;
public abstract class BasicAction extends AbstractAction {
private static final long serialVersionUID = -1438192657261008665L;
protected Users toUsers() {
return (Users) session.getAttribute(LOGIN_USER);
}
protected void setUsers(Users user) {
session.setAttribute(LOGIN_USER, user);
}
protected Users toMembers(){
return (Users) session.getAttribute(LOGIN_MEMBER);
}
protected void setMembers(Users user) {
session.setAttribute(LOGIN_MEMBER, user);
}
}
分享到:
评论