📄 adduserform.java
字号:
/*
* Generated by MyEclipse Struts
* Template path: templates/java/JavaClass.vtl
*/
package com.tarena.oos.struts.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: 11-22-2007
*
* XDoclet definition:
* @struts.form name="addUserForm"
*/
public class AddUserForm extends ActionForm {
/*
* Generated fields
*/
/**
*
*/
private static final long serialVersionUID = 1L;
/** paymentStyle property */
private Integer paymentStyle;
/** userName property */
private String userName;
/** loginName property */
private String loginName;
/** mailAddress property */
private String mailAddress;
/** nationality property */
private Integer nationality;
/** loginPassword2 property */
private String loginPassword2;
/** company property */
private String company;
/** sex property */
private Integer sex;
/** userStatus property */
private Integer userStatus;
/** loginPassword property */
private String loginPassword;
/** userEmail property */
private String userEmail;
/** userPhone property */
private String userPhone;
/** career property */
private Integer career;
/** postCode property */
private String postCode;
/*
* Generated Methods
*/
/**
* Method validate
* @param mapping
* @param request
* @return ActionErrors
*/
public ActionErrors validate(ActionMapping mapping,
HttpServletRequest request) {
ActionErrors errors=new ActionErrors();
if((loginName==null)||(loginName.length()<1)||(loginName.length()>32)) {
errors.add("loginName", new ActionMessage("帐务帐号输入有误,请重新输入"));
}
if((loginPassword==null)||(loginPassword.length()<1)||(loginPassword.length()>32)) {
errors.add("loginPassword", new ActionMessage("密码输入有误,请重新输入"));
}
if(!loginPassword2.equals(loginPassword)) {
errors.add("loginPassword2", new ActionMessage("两次输入的密码不一致,请重新输入"));
}
return null;
}
/**
* Method reset
* @param mapping
* @param request
*/
public void reset(ActionMapping mapping, HttpServletRequest request) {
// TODO Auto-generated method stub
}
/**
* Returns the paymentStyle.
* @return String
*/
public Integer getPaymentStyle() {
return paymentStyle;
}
/**
* Set the paymentStyle.
* @param paymentStyle The paymentStyle to set
*/
public void setPaymentStyle(Integer paymentStyle) {
this.paymentStyle = paymentStyle;
}
/**
* Returns the userName.
* @return String
*/
public String getUserName() {
return userName;
}
/**
* Set the userName.
* @param userName The userName to set
*/
public void setUserName(String userName) {
this.userName = userName;
}
/**
* Returns the loginName.
* @return String
*/
public String getLoginName() {
return loginName;
}
/**
* Set the loginName.
* @param loginName The loginName to set
*/
public void setLoginName(String loginName) {
this.loginName = loginName;
}
/**
* Returns the mailAddress.
* @return String
*/
public String getMailAddress() {
return mailAddress;
}
/**
* Set the mailAddress.
* @param mailAddress The mailAddress to set
*/
public void setMailAddress(String mailAddress) {
this.mailAddress = mailAddress;
}
/**
* Returns the nationality.
* @return String
*/
public Integer getNationality() {
return nationality;
}
/**
* Set the nationality.
* @param nationality The nationality to set
*/
public void setNationality(Integer nationality) {
this.nationality = nationality;
}
/**
* Returns the loginPassword2.
* @return String
*/
public String getLoginPassword2() {
return loginPassword2;
}
/**
* Set the loginPassword2.
* @param loginPassword2 The loginPassword2 to set
*/
public void setLoginPassword2(String loginPassword2) {
this.loginPassword2 = loginPassword2;
}
/**
* Returns the company.
* @return String
*/
public String getCompany() {
return company;
}
/**
* Set the company.
* @param company The company to set
*/
public void setCompany(String company) {
this.company = company;
}
/**
* Returns the sex.
* @return String
*/
public Integer getSex() {
return sex;
}
/**
* Set the sex.
* @param sex The sex to set
*/
public void setSex(Integer sex) {
this.sex = sex;
}
/**
* Returns the userStatus.
* @return String
*/
public Integer getUserStatus() {
return userStatus;
}
/**
* Set the userStatus.
* @param userStatus The userStatus to set
*/
public void setUserStatus(Integer userStatus) {
this.userStatus = userStatus;
}
/**
* Returns the loginPassword.
* @return String
*/
public String getLoginPassword() {
return loginPassword;
}
/**
* Set the loginPassword.
* @param loginPassword The loginPassword to set
*/
public void setLoginPassword(String loginPassword) {
this.loginPassword = loginPassword;
}
/**
* Returns the userEmail.
* @return String
*/
public String getUserEmail() {
return userEmail;
}
/**
* Set the userEmail.
* @param userEmail The userEmail to set
*/
public void setUserEmail(String userEmail) {
this.userEmail = userEmail;
}
/**
* Returns the userPhone.
* @return String
*/
public String getUserPhone() {
return userPhone;
}
/**
* Set the userPhone.
* @param userPhone The userPhone to set
*/
public void setUserPhone(String userPhone) {
this.userPhone = userPhone;
}
/**
* Returns the career.
* @return String
*/
public Integer getCareer() {
return career;
}
/**
* Set the career.
* @param career The career to set
*/
public void setCareer(Integer career) {
this.career = career;
}
/**
* Returns the postCode.
* @return String
*/
public String getPostCode() {
return postCode;
}
/**
* Set the postCode.
* @param postCode The postCode to set
*/
public void setPostCode(String postCode) {
this.postCode = postCode;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -