📄 searchform.java
字号:
package com.leeman.wkexs.master.rolemgt.web;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionMapping;
import com.leeman.wkexs.web.base.BaseSearchForm;
/**
* Form bean for a Struts application.
* Users may access 2 fields on this form:
* <ul>
* <li>role_name - [your comment here]
* <li>role_id - [your comment here]
* </ul>
* @version 1.0
* @author
*/
public class SearchForm extends BaseSearchForm {
private String role_name = null;
private String role_id = null;
/**
* Get role_name
* @return String
*/
public String getRole_name() {
return role_name;
}
/**
* Set role_name
* @param <code>String</code>
*/
public void setRole_name(String r) {
this.role_name = r;
}
/**
* Get role_id
* @return String
*/
public String getRole_id() {
return role_id;
}
/**
* Set role_id
* @param <code>String</code>
*/
public void setRole_id(String p) {
this.role_id = p;
}
public void reset(ActionMapping mapping, HttpServletRequest request) {
// Reset values are provided as samples only. Change as appropriate.
role_name = null;
role_id = null;
}
public ActionErrors validate(
ActionMapping mapping,
HttpServletRequest request) {
ActionErrors errors = new ActionErrors();
// Validate the fields in your form, adding
// adding each error to this.errors as found, e.g.
// if ((field == null) || (field.length() == 0)) {
// errors.add("field", new org.apache.struts.action.ActionError("error.field.required"));
// }
return errors;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -