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

📄 addcustomerform.java

📁 简单的struts框架的应用 实现对数据库的增删改查
💻 JAVA
字号:
/*
 * Generated by MyEclipse Struts
 * Template path: templates/java/JavaClass.vtl
 */
package com.lc.zyz.controller.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: 04-09-2009
 * 
 * XDoclet definition:
 * @struts.form name="addCustomerForm"
 */
public class AddCustomerForm extends ActionForm {
	/*
	 * Generated fields
	 */

	/** cusSex property */
	private String cusSex;

	/** cusIdCard property */
	private String cusIdCard;

	/** cusAge property */
	private Integer cusAge;

	/** cusId property */
	private String cusId;

	/** cusName property */
	private String cusName;

	/*
	 * Generated Methods
	 */

	/** 
	 * Method validate
	 * @param mapping
	 * @param request
	 * @return ActionErrors
	 */
	public ActionErrors validate(ActionMapping mapping,
			HttpServletRequest request) {
		ActionErrors errors=new ActionErrors();
//		if(this.cusId.equals("") || this.cusId.equals(null))
//		{
//			errors.add("cusId", new ActionMessage("cusId is empty"));
//		}
		return errors;
	}

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

	/** 
	 * Returns the cusSex.
	 * @return String
	 */
	public String getCusSex() {
		return cusSex;
	}

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

	/** 
	 * Returns the cusIdCard.
	 * @return String
	 */
	public String getCusIdCard() {
		return cusIdCard;
	}

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

	/** 
	 * Returns the cusAge.
	 * @return Integer
	 */
	public Integer getCusAge() {
		return cusAge;
	}

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

	/** 
	 * Returns the cusId.
	 * @return String
	 */
	public String getCusId() {
		return cusId;
	}

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

	/** 
	 * Returns the cusName.
	 * @return String
	 */
	public String getCusName() {
		return cusName;
	}

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

⌨️ 快捷键说明

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