public String setting() throws Exception {
		// 获取session
		Map<String, Object> session = ActionContext.getContext().getSession();
		// 获取服务
		ProfileService service = new ProfileService();
		// 获取老师信息
		TeacherVO teacherInfo = service.getTeacherProfile((String) session
				.get("USER_ID"));
		if (oldPawword == null || oldPawword.equals("")) {
			status = "旧密码不能为空";
			return SUCCESS;
		}
		if (newPassword == null || newPassword.equals("")) {
			status = "新密码不能为空";
			return SUCCESS;
		}
		if (!oldPawword.equals(teacherInfo.getPassword())) {
			status = "密码修改失败，旧密码错误";
			return SUCCESS;
		}
		if (oldPawword.equals(newPassword)) {
			status = "密码修改失败，新旧密码不能相同";
			return SUCCESS;
		}
		// 设置密码
		teacherInfo.setPassword(newPassword);
		// 保存学生信息
		if(!service.setTeacherProfile(teacherInfo)) {
			status = "密码修改失败";
			return SUCCESS;
		}
		status = "密码修改成功";
		return SUCCESS;
	}