?? adduserform.java
字號(hào):
/*
* Generated by MyEclipse Struts
* Template path: templates/java/JavaClass.vtl
*/
package kignbi.dong.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: 01-30-2008
*
* XDoclet definition:
* @struts.form name="addUserForm"
*/
public class AddUserForm extends ActionForm {
/*
* Generated fields
*/
/**
*
*/
private static final long serialVersionUID = 1L;
/** usex property */
private String usex;
/** upassword property */
private String upassword;
/** uclass property */
private String uclass;
/** ugrade property */
private String ugrade;
/** ui property */
private String uid;
/** uname property */
private String uname;
/*
* Generated Methods
*/
/**
* Method validate
* @param mapping
* @param request
* @return ActionErrors
*/
public ActionErrors validate(ActionMapping mapping,
HttpServletRequest request) {
// TODO Auto-generated method stub
ActionErrors errors=new ActionErrors();
if((uid==null)|(uid.length()<1)){
errors.add("uid",new ActionMessage("add.user.nouid"));
}
if((uname==null)|(uname.length()<1)){
errors.add("uname",new ActionMessage("add.user.nouname"));
}
if((upassword==null)|(upassword.length()<1)){
errors.add("upassword",new ActionMessage("add.user.noupassword"));
}
return errors;
}
/**
* Method reset
* @param mapping
* @param request
*/
public void reset(ActionMapping mapping, HttpServletRequest request) {
// TODO Auto-generated method stub
}
/**
* Returns the usex.
* @return String
*/
public String getUsex() {
return usex;
}
/**
* Set the usex.
* @param usex The usex to set
*/
public void setUsex(String usex) {
this.usex = usex;
}
/**
* Returns the upassword.
* @return String
*/
public String getUpassword() {
return upassword;
}
/**
* Set the upassword.
* @param upassword The upassword to set
*/
public void setUpassword(String upassword) {
this.upassword = upassword;
}
/**
* Returns the uclass.
* @return String
*/
public String getUclass() {
return uclass;
}
/**
* Set the uclass.
* @param uclass The uclass to set
*/
public void setUclass(String uclass) {
this.uclass = uclass;
}
/**
* Returns the ugrade.
* @return String
*/
public String getUgrade() {
return ugrade;
}
/**
* Set the ugrade.
* @param ugrade The ugrade to set
*/
public void setUgrade(String ugrade) {
this.ugrade = ugrade;
}
/**
* Returns the ui.
* @return String
*/
public String getUid() {
return uid;
}
/**
* Set the ui.
* @param ui The ui to set
*/
public void setUid(String uid) {
this.uid = uid;
}
/**
* Returns the uname.
* @return String
*/
public String getUname() {
return uname;
}
/**
* Set the uname.
* @param uname The uname to set
*/
public void setUname(String uname) {
this.uname = uname;
}
}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -