public String EditAdmin() throws Exception{
	
	Long aid=Long.valueOf(request.getParameter("aid"));
	String oldpwd=request.getParameter("oldpwd");
	String pwd=request.getParameter("pwd");
	String username=request.getParameter("username");
	String email = request.getParameter("email");
	String phone = request.getParameter("phone");
	AdminDAO dao=DAOFactory.getAdminDAO();
	if(dao.checkPwd(username, oldpwd)!=true){
		this.message=URLEncoder.encode("原始密码错误,修改失败！", "UTF-8");
		return "fail";
	}

	Admin admin=dao.findAdmin(aid);
	admin.setA_email(email);
	admin.setA_phone(phone);
	admin.setA_pass(pwd);
	boolean ret1=dao.updateAdmin(admin);
	if(ret1){
		//response.sendRedirect("../admin/AdminList.jsp");
		return "success";
	}else{
		this.message=URLEncoder.encode("编辑管理员出错！请联系管理员！", "UTF-8");
		//response.sendRedirect("../admin/OpResult.jsp?op=default&ret=false&words="+URLEncoder.encode("编辑管理员出错！请联系管理员", "UTF-8"));
		return "fail";
	}
	
}