usersloginform.java

来自「这是图书管理系统 ~~用JSP实现的 大家要的可以」· Java 代码 · 共 40 行

JAVA
40
字号
package jthink.formbean;
import org.apache.struts.action.*;
import javax.servlet.http.HttpServletRequest;

public class UsersLoginForm extends ActionForm {
    private String users_Name;
    private String users_Pwd;
    public String getUsers_Name() {
        return users_Name;
    }

    public void setUsers_Name(String users_Name) {
        this.users_Name = users_Name;
    }

    public void setUsers_Pwd(String users_Pwd) {
        this.users_Pwd = users_Pwd;
    }

    public String getUsers_Pwd() {
        return users_Pwd;
    }

    public ActionErrors validate(ActionMapping actionMapping,
                                 HttpServletRequest httpServletRequest) {
        ActionErrors err = new ActionErrors();
        if (this.getUsers_Name() == null ||this.getUsers_Name().length()<1) {
            err.add("nameerr", new ActionMessage("err.user.login.namenullerr"));
        }
        if (this.getUsers_Pwd() == null||this.getUsers_Pwd().length()<1) {
            err.add("pwderr", new ActionMessage("err.user.login.pwdnullerr"));
        }
        return err;
    }

    public void reset(ActionMapping actionMapping,
                      HttpServletRequest servletRequest) {
    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?