⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 autoactionform.java

📁 该项为帮助银行工作人员处理银行业务
💻 JAVA
字号:
package com.bluedot.bank.framework.web.actionform;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionMessage;

public class AutoActionForm extends ActionForm {

	private static final long serialVersionUID = 1L;

	@Override
	public ActionErrors validate(ActionMapping mapping,
			HttpServletRequest request) {
		ActionErrors errors = new ActionErrors();
		if(this.accountId2==null||this.accountId2.trim().isEmpty()){
			errors.add("accountId2", new ActionMessage("error.accountId2.rep"));
		}
		if(this.countLine2==null||this.countLine2.trim().isEmpty()||Integer.valueOf(this.countLine2)<=0){
			errors.add("countLine2", new ActionMessage("error.countLine2.rep"));
		}
		
		return errors;
	}

	private String accountId2;
	private String countLine2;
	private String action;

	public String getAccountId2() {
		return accountId2;
	}

	public void setAccountId2(String accountId2) {
		this.accountId2 = accountId2;
	}

	public String getCountLine2() {
		return countLine2;
	}

	public void setCountLine2(String countLine2) {
		this.countLine2 = countLine2;
	}

	public String getAction() {
		return action;
	}

	public void setAction(String action) {
		this.action = action;
	}

}

⌨️ 快捷键说明

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