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

📄 dl7101form.java

📁 一个完整的物流系统
💻 JAVA
字号:
/*
 * Generated by MyEclipse Struts
 * Template path: templates/java/JavaClass.vtl
 */
package jp.com.cost.login.web.form;

import javax.servlet.http.HttpServletRequest;

import jp.com.cost.common.DataCheckor;

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: 08-26-2008
 * 
 * XDoclet definition:
 * @struts.form name="DL7101FormForm"
 */
public class DL7101Form extends ActionForm {
	/*
	 * Generated fields
	 */

	/** apass property */
	private String apass;

	/** aid property */
	private String aid;

	/*
	 * Generated Methods
	 */

	/** 
	 * Method validate
	 * @param mapping
	 * @param request
	 * @return ActionErrors
	 */
	public ActionErrors validate(ActionMapping mapping,
			HttpServletRequest request) {
		ActionErrors errors = new ActionErrors();
		if(DataCheckor.isNull(aid)){
		errors.add("nameerror", new ActionMessage("login.errors.name"));
		}
		if(DataCheckor.isNull(apass)){
			errors.add("passerror", new ActionMessage("login.errors.pass"));
		}
		return errors;
	}

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

	/** 
	 * Returns the apass.
	 * @return String
	 */
	public String getApass() {
		return apass;
	}

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

	/** 
	 * Returns the aid.
	 * @return String
	 */
	public String getAid() {
		return aid;
	}

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

⌨️ 快捷键说明

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