searchactionform.java

来自「是Eclipse web开发从入门到精通的源码」· Java 代码 · 共 102 行

JAVA
102
字号
package actionform;

import javax.servlet.http.*;

import org.apache.struts.action.*;

public class SearchActionForm extends ActionForm {
	// action属性
	private String action;

	// searchkey属性
	private String searchkey;

	// stepid属性
	private String stepid;

	// typeid属性
	private String typeid;

	/**
	 * action属性的getter方法
	 * 
	 * @return
	 */
	public String getAction() {
		return action;
	}

	/**
	 * action属性的setter方法
	 * 
	 * @param action
	 */
	public void setAction(String action) {
		this.action = action;
	}

	/**
	 * typeid属性的setter方法
	 * 
	 * @param typeid
	 */
	public void setTypeid(String typeid) {
		this.typeid = typeid;
	}

	/**
	 * stepid属性的setter方法
	 * 
	 * @param stepid
	 */
	public void setStepid(String stepid) {
		this.stepid = stepid;
	}

	/**
	 * searchkey的setter方法
	 * 
	 * @param searchkey
	 */
	public void setSearchkey(String searchkey) {
		this.searchkey = searchkey;
	}

	/**
	 * searchkey的getter方法
	 * 
	 * @return
	 */
	public String getSearchkey() {
		return searchkey;
	}

	/**
	 * stepid的getter方法
	 * 
	 * @return
	 */
	public String getStepid() {
		return stepid;
	}

	/**
	 * typeid的getter方法
	 * 
	 * @return
	 */
	public String getTypeid() {
		return typeid;
	}

	public ActionErrors validate(ActionMapping actionMapping,
			HttpServletRequest httpServletRequest) {
		/** @todo: finish this method, this is just the skeleton. */
		return null;
	}

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

⌨️ 快捷键说明

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