📄 loginactionform.java~1~
字号:
package com.miaoq.userjmssesenbdb;import org.apache.struts.action.*;import javax.servlet.http.*;public class LoginActionForm extends ActionForm { private String shancbz_new; private String xiwbz_new; public String getShancbz_new() { return shancbz_new; } public void setShancbz_new(String shancbz_new) { this.shancbz_new = shancbz_new; } public String getXiwbz_new() { return xiwbz_new; } public void setXiwbz_new(String xiwbz_new) { this.xiwbz_new = xiwbz_new; } public ActionErrors validate(ActionMapping actionMapping, HttpServletRequest httpServletRequest) { ActionErrors errors=new ActionErrors(); if((shancbz_new==null)||(shancbz_new.length()<2)){ errors.add("shancbz",new ActionError("error.shancbz.required")); } if((xiwbz_new==null)||(xiwbz_new.length()<2)){ errors.add("xiwbz",new ActionError("error.xiwbz.required")); } return errors; } public void reset(ActionMapping actionMapping, HttpServletRequest httpServletRequest) { }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -