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

📄 adduserform.java

📁 eclipse+struts+sqlserver 简单图书管理系统,内有文档
💻 JAVA
字号:
/*
 * Generated by MyEclipse Struts
 * Template path: templates/java/JavaClass.vtl
 */
package kignbi.dong.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: 01-30-2008
 * 
 * XDoclet definition:
 * @struts.form name="addUserForm"
 */
public class AddUserForm extends ActionForm {
	/*
	 * Generated fields
	 */

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	/** usex property */
	private String usex;

	/** upassword property */
	private String upassword;

	/** uclass property */
	private String uclass;

	/** ugrade property */
	private String ugrade;

	/** ui property */
	private String uid;

	/** uname property */
	private String uname;

	/*
	 * Generated Methods
	 */

	/** 
	 * Method validate
	 * @param mapping
	 * @param request
	 * @return ActionErrors
	 */
	public ActionErrors validate(ActionMapping mapping,
			HttpServletRequest request) {
		// TODO Auto-generated method stub
		ActionErrors errors=new ActionErrors();
		 if((uid==null)|(uid.length()<1)){
		     errors.add("uid",new ActionMessage("add.user.nouid"));
	     }
		 if((uname==null)|(uname.length()<1)){
			errors.add("uname",new ActionMessage("add.user.nouname"));
		 }
		 if((upassword==null)|(upassword.length()<1)){
			 errors.add("upassword",new ActionMessage("add.user.noupassword"));
		 }
		
	
		return errors;
	}

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

	/** 
	 * Returns the usex.
	 * @return String
	 */
	public String getUsex() {
		return usex;
	}

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

	/** 
	 * Returns the upassword.
	 * @return String
	 */
	public String getUpassword() {
		return upassword;
	}

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

	/** 
	 * Returns the uclass.
	 * @return String
	 */
	public String getUclass() {
		return uclass;
	}

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

	/** 
	 * Returns the ugrade.
	 * @return String
	 */
	public String getUgrade() {
		return ugrade;
	}

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

	/** 
	 * Returns the ui.
	 * @return String
	 */
	public String getUid() {
		return uid;
	}

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

	/** 
	 * Returns the uname.
	 * @return String
	 */
	public String getUname() {
		return uname;
	}

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

⌨️ 快捷键说明

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