`

java 编程

    博客分类:
  • java
阅读更多
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);
	}

}




分享到:
评论
Global site tag (gtag.js) - Google Analytics