📄 enterform.java
字号:
package com.stsc.archive.manage;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.*;
/*
<b>ActionForm</b>
*/
public class EnterForm extends ActionForm
{
private String user = "";
private String pass = "";
public void setUser(String user)
{
this.user = user;
}
public String getUser()
{
return this.user;
}
public void setPass(String pass)
{
this.pass = pass;
}
public String getPass()
{
return this.pass;
}
/**
* 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.user = "";
this.pass = "";
}
/**
public ActionErrors validate(ActionMapping mapping,
HttpServletRequest request)
{
ActionErrors errors = new ActionErrors();
if((user == null) || (user.length() < 3))
{
errors.add("user", new ActionError("error.enter.user"));
}
if((pass == null) || (pass.length() < 3))
{
errors.add("pass", new ActionError("error.enter.pass"));
}
return errors;
}*/
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -