📄 modifyuserform.java
字号:
package com.stsc.archive.manage;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.*;
/*
<b>ActionForm</b>
*/
public class ModifyUserForm extends ActionForm
{
private String userName = "";
private String depart = "";
private String enterName = "";
private int rowsPerPage = 10;
//---------------------------------------------------------
private String pass1 = "";
private String pass2 = "";
private String oldpass = "";
public String getPass1()
{
return this.pass1;
}
public void setPass1(String pass1)
{
this.pass1 = (pass1==null)?"":pass1;
}
public String getPass2()
{
return this.pass2;
}
public void setPass2(String pass2)
{
this.pass2 = (pass2==null)?"":pass2;
}
public String getOldpass()
{
return this.oldpass;
}
public void setOldpass(String oldpass)
{
this.oldpass = (oldpass==null)?"":oldpass;
}
//=========================================================
public void setEnterName(String enterName)
{
this.enterName = (enterName == null)?"":enterName;
}
public String getEnterName()
{
return this.enterName;
}
public void setRowsPerPage(int rowsPerPage)
{
this.rowsPerPage = rowsPerPage;
}
public int getRowsPerPage()
{
return this.rowsPerPage;
}
public void setUserName(String userName)
{
this.userName = (userName == null)?"":userName;
}
public String getUserName()
{
return this.userName;
}
public void setDepart(String depart)
{
this.depart = (depart == null)?"":depart;
}
public String getDepart()
{
return this.depart;
}
/**
* Reset all properties to their default values.
*
* @param mapping The mapping used to select this instance
* @param request The servlet request we are processing
*/
public void reset(ActionMapping mapping, HttpServletRequest request)
{
this.userName = "";
this.depart = "";
this.rowsPerPage = 10;
this.enterName = "";
}
/*
public ActionErrors validate(ActionMapping mapping,
HttpServletRequest request)
{
ActionErrors errors = new ActionErrors();
if( (enterName != null) && (enterName.length() > 0) )
{
errors.add("pass1", new ActionError("error.addUser.userLength"));
}
if( (pass1 == null) || (pass1.length() < 1) )
{
errors.add("pass1", new ActionError("error.addUser.pass"));
}
if(!pass1.equals(pass2))
{
errors.add("pass", new ActionError("error.addUser.pass2"));
}
return errors;
}*/
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -