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

📄 userregisterform.java

📁 《基于Eclipse的开源框架技术与实战》[第10章]随书源码
💻 JAVA
字号:
package com.free.web.struts.form;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.*;

/**
 * <p>Title: Eclipse Plugin Development</p>
 * <p>Description: Free download</p>
 * <p>Copyright: Copyright (c) 2006</p>
 * <p>Company: Free</p>
 * @author gan.shu.man
 * @version 1.0
 */

public class UserRegisterForm extends ActionForm {

	//对当前Form或用户数据操作的状态,例如添加或修改
	private String action = "add";
	private String actionUpdateData;

	//主键ID
	private Integer id;
	//用户登录名
	private String userid;
    //登录密码
	private String password;
	//用户Email
	private String email;
	//用户住址
	private String address;
	//用户联系电话
	private String phno;

	public void reset(ActionMapping mapping, HttpServletRequest request) {

		this.id = null;
		this.userid = null;
		this.password = null;
		this.email = null;
		this.address = null;
		this.phno = null;

		this.action = "add";
		this.actionUpdateData = "";

	}

	public ActionErrors validate(

	ActionMapping mapping, HttpServletRequest request) {
		ActionErrors errors = new ActionErrors();

		return errors;
	}

	public String getAction() {
		return action;
	}

	public void setAction(String action) {
		this.action = action;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getPhno() {
		return phno;
	}

	public void setPhno(String phno) {
		this.phno = phno;
	}

	public String getUserid() {
		return userid;
	}

	public void setUserid(String userid) {
		this.userid = userid;
	}

	public String getActionUpdateData() {
		return actionUpdateData;
	}

	public void setActionUpdateData(String actionUpdateData) {
		this.actionUpdateData = actionUpdateData;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}
}

⌨️ 快捷键说明

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