📄 modifymyinfoform.java
字号:
/*
* Generated by MyEclipse Struts
* Template path: templates/java/JavaClass.vtl
*/
package bugtrail.form;
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: 12-25-2006
*
* XDoclet definition:
* @struts.form name="modifyMyInfoForm"
*/
public class ModifyMyInfoForm extends ActionForm {
/*
* Generated fields
*/
/** phone property */
private String phone;
/** remark property */
private String remark;
/** address property */
private String address;
/** email property */
private String email;
/** name property */
private String name;
/** pswAnswer property */
private String pswAnswer;
/** pswQuestion property */
private String pswQuestion;
/*
* Generated Methods
*/
/**
* Method validate
* @param mapping
* @param request
* @return ActionErrors
*/
public ActionErrors validate(ActionMapping mapping,
HttpServletRequest request) {
ActionErrors errors = new ActionErrors();
if(getEmail().length()<1)
errors.add("email",new ActionError("email.null"));
if(getPhone().length()<1)
errors.add("phone",new ActionError("phone.null"));
return errors;
}
/**
* Method reset
* @param mapping
* @param request
*/
public void reset(ActionMapping mapping, HttpServletRequest request) {
// TODO Auto-generated method stub
}
/**
* Returns the phone.
* @return String
*/
public String getPhone() {
return phone;
}
/**
* Set the phone.
* @param phone The phone to set
*/
public void setPhone(String phone) {
this.phone = phone;
}
/**
* Returns the remark.
* @return String
*/
public String getRemark() {
return remark;
}
/**
* Set the remark.
* @param remark The remark to set
*/
public void setRemark(String remark) {
this.remark = remark;
}
/**
* Returns the address.
* @return String
*/
public String getAddress() {
return address;
}
/**
* Set the address.
* @param address The address to set
*/
public void setAddress(String address) {
this.address = address;
}
/**
* Returns the email.
* @return String
*/
public String getEmail() {
return email;
}
/**
* Set the email.
* @param email The email to set
*/
public void setEmail(String email) {
this.email = email;
}
/**
* Returns the name.
* @return String
*/
public String getName() {
return name;
}
/**
* Set the name.
* @param name The name to set
*/
public void setName(String name) {
this.name = name;
}
/**
* Returns the pswAnswer.
* @return String
*/
public String getPswAnswer() {
return pswAnswer;
}
/**
* Set the pswAnswer.
* @param pswAnswer The pswAnswer to set
*/
public void setPswAnswer(String pswAnswer) {
this.pswAnswer = pswAnswer;
}
/**
* Returns the pswQuestion.
* @return String
*/
public String getPswQuestion() {
return pswQuestion;
}
/**
* Set the pswQuestion.
* @param pswQuestion The pswQuestion to set
*/
public void setPswQuestion(String pswQuestion) {
this.pswQuestion = pswQuestion;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -