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

📄 addclieatactionform.java

📁 这是本人以前在学校时
💻 JAVA
字号:
/*
 * Created on 2006-6-23
 *
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
package com.funddeal.view.actionform.client;

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;

/**
 * @author Administrator
 *
 * TODO To change the template for this generated type comment go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
public class AddClieatActionForm extends ActionForm {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String client_name;
	private String id_card_no;
	private String sex;
	private String phone;
	private String addess;
	private String email;
	private String hobby;
	
	public ActionErrors validate(ActionMapping mapping,
			HttpServletRequest request){
		
		ActionErrors ae=new ActionErrors();
		if(client_name.equals("") || id_card_no.equals("") ||
				sex.equals("") ||phone.equals("") || addess.equals("") || email.equals("") || hobby.equals(""))
			ae.add("djsone",new ActionMessage("godine"));
		return ae;
		
	}

	/**
	 * @return Returns the addess.
	 */
	public String getAddess() {
		return addess;
	}
	/**
	 * @param addess The addess to set.
	 */
	public void setAddess(String addess) {
		this.addess = addess;
	}
	/**
	 * @return Returns the client_name.
	 */
	public String getClient_name() {
		return client_name;
	}
	/**
	 * @param client_name The client_name to set.
	 */
	public void setClient_name(String client_name) {
		this.client_name = client_name;
	}
	/**
	 * @return Returns the email.
	 */
	public String getEmail() {
		return email;
	}
	/**
	 * @param email The email to set.
	 */
	public void setEmail(String email) {
		this.email = email;
	}
	/**
	 * @return Returns the hobby.
	 */
	public String getHobby() {
		return hobby;
	}
	/**
	 * @param hobby The hobby to set.
	 */
	public void setHobby(String hobby) {
		this.hobby = hobby;
	}
	/**
	 * @return Returns the id_card_no.
	 */
	public String getId_card_no() {
		return id_card_no;
	}
	/**
	 * @param id_card_no The id_card_no to set.
	 */
	public void setId_card_no(String id_card_no) {
		this.id_card_no = id_card_no;
	}
	/**
	 * @return Returns the phone.
	 */
	public String getPhone() {
		return phone;
	}
	/**
	 * @param phone The phone to set.
	 */
	public void setPhone(String phone) {
		this.phone = phone;
	}
	/**
	 * @return Returns the sex.
	 */
	public String getSex() {
		return sex;
	}
	/**
	 * @param sex The sex to set.
	 */
	public void setSex(String sex) {
		this.sex = sex;
	}
}

⌨️ 快捷键说明

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