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

📄 bookqueryform.java

📁 一个很适合初学者的网上书店系统
💻 JAVA
字号:
/*
 * Generated by MyEclipse Struts
 * Template path: templates/java/JavaClass.vtl
 */
package com.ascent.struts.form;

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;

/**
 * MyEclipse Struts Creation date: 07-12-2006
 * 
 * XDoclet definition:
 * 
 * @struts.form name="bookQueryForm"
 */
public class BookQueryForm extends ActionForm {
	/*
	 * Generated fields
	 */

	/** bookAuthor property */
	private String bookAuthor;

	/** bookName property */
	private String bookName;

	private String select;

	/*
	 * Generated Methods
	 */

	public String getSelect() {
		return select;
	}

	public void setSelect(String select) {
		this.select = select;
	}

	/**
	 * 
	 * Method validate
	 * 
	 * @param mapping
	 * @param request
	 * @return ActionErrors
	 */
	public ActionErrors validate(ActionMapping mapping,
			HttpServletRequest request) {
		// ActionErrors errors =new ActionErrors();
		// if(bookName==null||bookName==""){
		// errors.add("bookName", new ActionMessage("error.bookName.required"));
		// }
		return null;
	}

	/**
	 * Method reset
	 * 
	 * @param mapping
	 * @param request
	 */
	public void reset(ActionMapping mapping, HttpServletRequest request) {
		// TODO Auto-generated method stub
	}

	/**
	 * Returns the bookAuthor.
	 * 
	 * @return String
	 */
	public String getBookAuthor() {
		return bookAuthor;
	}

	/**
	 * Set the bookAuthor.
	 * 
	 * @param bookAuthor
	 *            The bookAuthor to set
	 */
	public void setBookAuthor(String bookAuthor) {
		this.bookAuthor = bookAuthor;
	}

	/**
	 * Returns the bookName.
	 * 
	 * @return String
	 */
	public String getBookName() {
		return bookName;
	}

	/**
	 * Set the bookName.
	 * 
	 * @param bookName
	 *            The bookName to set
	 */
	public void setBookName(String bookName) {
		this.bookName = bookName;
	}
}

⌨️ 快捷键说明

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