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

📄 regform.java

📁 数学网
💻 JAVA
字号:
//Created by MyEclipse Struts// XSL source (default): platform:/plugin/com.genuitec.eclipse.cross.easystruts.eclipse_4.0.1/xslt/JavaClass.xslpackage math.reg.controller;import javax.servlet.http.HttpServletRequest;import org.apache.struts.action.ActionError;import org.apache.struts.action.ActionErrors;import org.apache.struts.action.ActionForm;import org.apache.struts.action.ActionMapping;/**  * MyEclipse Struts * Creation date: 11-03-2006 *  * XDoclet definition: * @struts.form name="loginForm" */public class RegForm extends ActionForm {	private int id;	private String username;	private String real_name;	private String password;	private String confirmpassword;	private String users_phone;	private int users_sex ;	private String users_sex_value;		private String users_ask ;	private String users_key ;	private String users_email ;	private String users_school ;	private String users_pro ;			private int users_grade;	private String reg_ip_addr;	public int getId() {		return id;	}	public void setId(int id) {		this.id = id;	}	public String getPassword() {		return password;	}	public void setPassword(String password) {		this.password = password;	}	public String getReal_name() {		return real_name;	}	public void setReal_name(String real_name) {		this.real_name = real_name;	}	public String getReg_ip_addr() {		return reg_ip_addr;	}	public void setReg_ip_addr(String reg_ip_addr) {		this.reg_ip_addr = reg_ip_addr;	}	public String getUsername() {		return username;	}	public void setUsername(String username) {		this.username = username;	}	public String getUsers_ask() {		return users_ask;	}	public void setUsers_ask(String users_ask) {		this.users_ask = users_ask;	}	public String getUsers_email() {		return users_email;	}	public void setUsers_email(String users_email) {		this.users_email = users_email;	}	public int getUsers_grade() {		return users_grade;	}	public void setUsers_grade(int users_grade) {		this.users_grade = users_grade;	}	public String getUsers_key() {		return users_key;	}	public void setUsers_key(String users_key) {		this.users_key = users_key;	}	public String getUsers_phone() {		return users_phone;	}	public void setUsers_phone(String users_phone) {		this.users_phone = users_phone;	}	public String getUsers_pro() {		return users_pro;	}	public void setUsers_pro(String users_pro) {		this.users_pro = users_pro;	}	public String getUsers_school() {		return users_school;	}	public void setUsers_school(String users_school) {		this.users_school = users_school;	}	public int getUsers_sex() {		return users_sex;	}	public void setUsers_sex(int users_sex) {		this.users_sex = users_sex;	}	public ActionErrors validate(		ActionMapping mapping,		HttpServletRequest request) {		ActionErrors errors = new ActionErrors();	    if ( (username == null) || (username.length() < 1))	      errors.add("username", new ActionError("error.username.required"));	    	    else if ( (password == null) || (password.length() < 1))	      errors.add("password", new ActionError("error.password.required"));   	    else if ( (!password.equals(confirmpassword)))		      errors.add("password", new ActionError("error.password.required"));		return errors;	}	public void reset(ActionMapping mapping, HttpServletRequest request) {	}	public String getConfirmpassword() {		return confirmpassword;	}	public void setConfirmpassword(String confirmpassword) {		this.confirmpassword = confirmpassword;	}	public String getUsers_sex_value() {		return users_sex_value;	}	public void setUsers_sex_value(String users_sex_value) {		this.users_sex_value = users_sex_value;	}}

⌨️ 快捷键说明

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