📄 archivelistform.java
字号:
/*
*
* "This product includes software developed by the
* Apache Software Foundation (http://www.apache.org/)."
*
*/
package com.stsc.archive.file;
import java.text.ParseException;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionError;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;
import java.util.Date;
/**
* Form bean for the archive page. This form has the following fields,
* @author Yushirui
* @version $Revision: 1.0 $ $Date: 2003/04/14 10:42:08 $
*/
public final class ArchiveListForm extends ActionForm {
// --------------------------------------------------- Instance Variables
private String total = null;
private String curPage = null;
private String goPage = null;
// ----------------------------------------------------------- Properties
/**
* Return the total.
*/
public String getTotal() {
return (this.total);
}
/**
* Set the total.
*
* @param total The new total
*/
public void setTotal(String total) {
this.total = total;
}
/**
* Return the curPage.
*/
public String getCurPage() {
return (this.curPage);
}
/**
* Set the curPage.
*
* @param curPage The new curPage
*/
public void setCurPage(String curPage) {
this.curPage = curPage;
}
/**
* Return the goPage.
*/
public String getGoPage() {
return (this.goPage);
}
/**
* Set the goPage.
*
* @param goPage The new goPage
*/
public void setGoPage(String goPage) {
this.goPage = goPage;
}
// --------------------------------------------------------- Public Methods
/**
* Reset all properties to their default values.
*
* @param mapping The mapping used to select this instance
* @param request The servlet request we are processing
*/
public void reset(ActionMapping mapping, HttpServletRequest request) {
this.total = null;
}
/**
* Validate the properties that have been set from this HTTP request,
* and return an <code>ActionErrors</code> object that encapsulates any
* validation errors that have been found. If no errors are found, return
* <code>null</code> or an <code>ActionErrors</code> object with no
* recorded error messages.
*
* @param mapping The mapping used to select this instance
* @param request The servlet request we are processing
*/
public ActionErrors validate(ActionMapping mapping,
HttpServletRequest request) {
ActionErrors errors = new ActionErrors();
return errors;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -