TaskForm.java
/*
* This software was designed and created by Jason Carroll.
* Copyright (c) 2002, 2003, 2004 Jason Carroll.
* The author can be reached at jcarroll@cowsultants.com
* ITracker website: http://www.cowsultants.com
* ITracker forums: http://www.cowsultants.com/phpBB/index.php
*
* This program is free software; you can redistribute it and/or modify
* it only under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
package org.itracker.web.forms;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.validator.ValidatorForm;
import javax.servlet.http.HttpServletRequest;
/**
* This is the LoginForm Struts Form. It is used by Login form.
*
* @author ready
*/
public class TaskForm extends ValidatorForm {
/**
*
*/
private static final long serialVersionUID = 1L;
String action;
Integer id;
String months;
String daysOfMonth;
String hours;
String minutes;
String weekdays;
String className;
String classNameText;
String args;
public void reset(ActionMapping mapping, HttpServletRequest request) {
action = null;
id = null;
months = null;
daysOfMonth = null;
hours = null;
minutes = null;
weekdays = null;
className = null;
classNameText = null;
args = null;
}
public ActionErrors validate(ActionMapping mapping,
HttpServletRequest request) {
ActionErrors errors = super.validate(mapping, request);
return errors;
}
public String getAction() {
return action;
}
public void setAction(String action) {
this.action = action;
}
public String getArgs() {
return args;
}
public void setArgs(String args) {
this.args = args;
}
public String getClassName() {
return className;
}
public void setClassName(String className) {
this.className = className;
}
public String getClassNameText() {
return classNameText;
}
public void setClassNameText(String classNameText) {
this.classNameText = classNameText;
}
public String getDaysOfMonth() {
return daysOfMonth;
}
public void setDaysOfMonth(String daysOfMonth) {
this.daysOfMonth = daysOfMonth;
}
public String getHours() {
return hours;
}
public void setHours(String hours) {
this.hours = hours;
}
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getMinutes() {
return minutes;
}
public void setMinutes(String minutes) {
this.minutes = minutes;
}
public String getMonths() {
return months;
}
public void setMonths(String months) {
this.months = months;
}
public String getWeekdays() {
return weekdays;
}
public void setWeekdays(String weekdays) {
this.weekdays = weekdays;
}
}