⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 updateadminform.java

📁 酒店管理系统 用sh编写的酒店管理系统 毕业设计用的
💻 JAVA
字号:
/*
 * Generated by MyEclipse Struts
 * Template path: templates/java/JavaClass.vtl
 */
package com.chen.struts.form;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionMessage;

/** 
 * MyEclipse Struts
 * Creation date: 10-30-2008
 * 
 * XDoclet definition:
 * @struts.form name="updateadminForm"
 */
public class UpdateadminForm extends ActionForm {
	/*
	 * Generated fields
	 */

	/** adminphone property */
	private Integer adminphone;

	/** adminemail property */
	private String adminemail;

	/** adminsex property */
	private String adminsex;

	/** adminaddr property */
	private String adminaddr;

	/*
	 * Generated Methods
	 */

	/** 
	 * Method validate
	 * @param mapping
	 * @param request
	 * @return ActionErrors
	 */
	public ActionErrors validate(ActionMapping mapping,
			HttpServletRequest request) {
		ActionErrors errors = new ActionErrors();
		
		if(this.adminaddr.equals("")){
			errors.clear();
			errors.add("adminaddr", new ActionMessage("addrisempty"));
			return errors;
		}
		if(this.adminphone.equals("")){
			errors.clear();
			errors.add("adminphone", new ActionMessage("phoneisempty"));
			return errors;
		}
		return null;
	}

	/** 
	 * Method reset
	 * @param mapping
	 * @param request
	 */
	public void reset(ActionMapping mapping, HttpServletRequest request) {
		// TODO Auto-generated method stub
	}

	/** 
	 * Returns the adminphone.
	 * @return String
	 */
	public Integer getAdminphone() {
		return adminphone;
	}

	/** 
	 * Set the adminphone.
	 * @param adminphone The adminphone to set
	 */
	public void setAdminphone(Integer adminphone) {
		this.adminphone = adminphone;
	}

	/** 
	 * Returns the adminemail.
	 * @return String
	 */
	public String getAdminemail() {
		return adminemail;
	}

	/** 
	 * Set the adminemail.
	 * @param adminemail The adminemail to set
	 */
	public void setAdminemail(String adminemail) {
		this.adminemail = adminemail;
	}

	/** 
	 * Returns the adminsex.
	 * @return String
	 */
	public String getAdminsex() {
		return adminsex;
	}

	/** 
	 * Set the adminsex.
	 * @param adminsex The adminsex to set
	 */
	public void setAdminsex(String adminsex) {
		this.adminsex = adminsex;
	}

	/** 
	 * Returns the adminaddr.
	 * @return String
	 */
	public String getAdminaddr() {
		return adminaddr;
	}

	/** 
	 * Set the adminaddr.
	 * @param adminaddr The adminaddr to set
	 */
	public void setAdminaddr(String adminaddr) {
		this.adminaddr = adminaddr;
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -