usersform.java
来自「JAVA 经典案例 源代码 Part2.」· Java 代码 · 共 108 行
JAVA
108 行
package org.helpsoft.blog.struts.forms;
import java.math.*;
import java.text.*;
import org.apache.struts.action.*;
import javax.servlet.http.HttpServletRequest;
import org.helpsoft.blog.dto.*;
public class UsersForm extends ActionForm
{
private String userid;
private String password;
private String name;
private String crudMethod;
/**
* Sets the value of userid
*/
public void setUserid(String userid)
{
this.userid = userid;
}
/**
* Gets the value of userid
*/
public String getUserid()
{
return userid;
}
/**
* Sets the value of password
*/
public void setPassword(String password)
{
this.password = password;
}
/**
* Gets the value of password
*/
public String getPassword()
{
return password;
}
/**
* Sets the value of name
*/
public void setName(String name)
{
this.name = name;
}
/**
* Gets the value of name
*/
public String getName()
{
return name;
}
/**
* Sets the value of crudMethod
*/
public void setCrudMethod(String crudMethod)
{
this.crudMethod = crudMethod;
}
/**
* Gets the value of crudMethod
*/
public String getCrudMethod()
{
return crudMethod;
}
/**
* Method 'reset'
*
*/
public void reset()
{
userid = "";
password = "";
name = "";
}
/**
* Method 'validate'
*
* @param mapping
* @param request
* @return ActionErrors
*/
public ActionErrors validate(ActionMapping mapping, HttpServletRequest request)
{
ActionErrors _errors = new ActionErrors();
return _errors;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?