private void regist(ActionEvent e) {
		boolean flg = true;
		String msg = null;
		String userName = this.userName.getText();
		String pwd = new String(this.pwd.getPassword());
		String pwdConfirm = new String(this.pwdConfirm.getPassword());
		if(userName.length() == Constants.NUM_ZERO || null == userName){
			flg = false;
			msg = "用户名不能为空";
		}else if (pwd.length() < Constants.LEN_OF_PWD) {
			flg = false;
			msg = "密码长度不能小于" + Constants.LEN_OF_PWD;
		}else if (!pwd.equals(pwdConfirm)) {
			flg = false;
			msg = "两次输入的密码不一样";
		}
		if(!flg){//验证不成功
			alert(msg, Constants.VALIDATE_ERROR);
		}else {
			msg = "注册成功";
			//初始化注册并初始化用户数据
			Map<String, Object> param = new HashMap<String, Object>();
			param.put(Constants.IN_USERNAME, userName);
			param.put(Constants.IN_PWD, pwd);
			String userNo = null;
			try {
				userNo = userDao.userRegist(param);
			} catch (Exception e2) {
				e2.printStackTrace();
				msg = e2.getMessage();
			}
			alert(msg+userNo, Constants.VALIDATE_OK);
			this.dispose();
		}
	}