// Path: src/main/java/bean/User.java
// public class User {
// 	
// 	private Integer id;
// 	private String name;
// 	private String password;
// 	/**
// 	 * @return the id
// 	 */
// 	public Integer getId() {
// 		return id;
// 	}
// 	/**
// 	 * @param id the id to set
// 	 */
// 	public void setId(Integer id) {
// 		this.id = id;
// 	}
// 	/**
// 	 * @return the name
// 	 */
// 	public String getName() {
// 		return name;
// 	}
// 	/**
// 	 * @param name the name to set
// 	 */
// 	public void setName(String name) {
// 		this.name = name;
// 	}
// 	/**
// 	 * @return the password
// 	 */
// 	public String getPassword() {
// 		return password;
// 	}
// 	/**
// 	 * @param password the password to set
// 	 */
// 	public void setPassword(String password) {
// 		this.password = password;
// 	}
// }
// 
// Path: src/main/java/dao/interfaces/UserDao.java
// public interface UserDao extends BaseDao<User> {
// 
// 	/**
// 	 * ¸ù¾ÝÓÃ»§ÃûËÑË÷ÓÃ»§
// 	 * 
// 	 * @param name
// 	 * @return ²»´æÔÚÊ±·µ»Ønull
// 	 */
// 	public abstract User get(String name);
// }


import com.opensymphony.xwork2.ActionSupport;
import dao.interfaces.UserDao;
import bean.User;
import com.opensymphony.xwork2.ActionContext;

/**
 * 2014Äê11ÔÂ10ÈÕ ÉÏÎç8:43:19
 */
package action;




/**
 * 
 * 
 * @author wavky.wand
 *
 */
public class UpdateAccountAction extends ActionSupport {

	private static final long serialVersionUID = 1L;

	private String name;
	private String password;
	private UserDao userDao;

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name
	 *            the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the password
	 */
	public String getPassword() {
		return password;
	}

	/**
	 * @param password
	 *            the password to set
	 */
	public void setPassword(String password) {
		this.password = password;
	}

	/**
	 * @return the userDao
	 */
	public UserDao getUserDao() {
		return userDao;
	}

	/**
	 * @param userDao
	 *            the userDao to set
	 */
	public void setUserDao(UserDao userDao) {
		this.userDao = userDao;
	}

	@Override
	public String execute() throws Exception {
		ActionContext ac = ActionContext.getContext();

// Path: src/main/java/bean/User.java
// public class User {
// 	
// 	private Integer id;
// 	private String name;
// 	private String password;
// 	/**
// 	 * @return the id
// 	 */
// 	public Integer getId() {
// 		return id;
// 	}
// 	/**
// 	 * @param id the id to set
// 	 */
// 	public void setId(Integer id) {
// 		this.id = id;
// 	}
// 	/**
// 	 * @return the name
// 	 */
// 	public String getName() {
// 		return name;
// 	}
// 	/**
// 	 * @param name the name to set
// 	 */
// 	public void setName(String name) {
// 		this.name = name;
// 	}
// 	/**
// 	 * @return the password
// 	 */
// 	public String getPassword() {
// 		return password;
// 	}
// 	/**
// 	 * @param password the password to set
// 	 */
// 	public void setPassword(String password) {
// 		this.password = password;
// 	}
// }
// 
// Path: src/main/java/dao/interfaces/UserDao.java
// public interface UserDao extends BaseDao<User> {
// 
// 	/**
// 	 * ¸ù¾ÝÓÃ»§ÃûËÑË÷ÓÃ»§
// 	 * 
// 	 * @param name
// 	 * @return ²»´æÔÚÊ±·µ»Ønull
// 	 */
// 	public abstract User get(String name);
// }


// Path: src/main/java/action/UpdateAccountAction.java
import com.opensymphony.xwork2.ActionSupport;
import dao.interfaces.UserDao;
import bean.User;
import com.opensymphony.xwork2.ActionContext;

/**
 * 2014Äê11ÔÂ10ÈÕ ÉÏÎç8:43:19
 */
package action;




/**
 * 
 * 
 * @author wavky.wand
 *
 */
public class UpdateAccountAction extends ActionSupport {

	private static final long serialVersionUID = 1L;

	private String name;
	private String password;
	private UserDao userDao;

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name
	 *            the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the password
	 */
	public String getPassword() {
		return password;
	}

	/**
	 * @param password
	 *            the password to set
	 */
	public void setPassword(String password) {
		this.password = password;
	}

	/**
	 * @return the userDao
	 */
	public UserDao getUserDao() {
		return userDao;
	}

	/**
	 * @param userDao
	 *            the userDao to set
	 */
	public void setUserDao(UserDao userDao) {
		this.userDao = userDao;
	}

	@Override
	public String execute() throws Exception {
		ActionContext ac = ActionContext.getContext();

		User master = (User) ac.getSession().get("master");
