NoteManageForm.java
资源名称:Myblog.rar [点击查看]
上传用户:wlfwy2004
上传日期:2016-12-12
资源大小:33978k
文件大小:1k
源码类别:
Jsp/Servlet
开发平台:
Java
- package com.opensource.blog.web.form;
- import org.apache.struts.validator.ValidatorForm;
- import org.apache.struts.action.ActionErrors;
- import org.apache.struts.action.ActionMapping;
- import javax.servlet.http.HttpServletRequest;
- import org.apache.commons.lang.*;
- public class NoteManageForm
- extends ValidatorForm {
- private String action;
- private long noteid;
- public String getAction() {
- return action;
- }
- public void setAction(String action) {
- this.action = action;
- }
- public void setNoteid(long noteid) {
- this.noteid = noteid;
- }
- public long getNoteid() {
- return noteid;
- }
- public ActionErrors validate(ActionMapping actionMapping, HttpServletRequest httpServletRequest) {
- ActionErrors errors = new ActionErrors();
- if (StringUtils.isBlank(this.action)) {
- this.action = "list";
- }
- if (this.page == 0) {
- this.page = 1;
- }
- return errors;
- }
- public void reset(ActionMapping actionMapping, HttpServletRequest servletRequest) {
- }
- }