package foo;
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;
public final class TestDBForm extends ActionForm {
// --------------------------------------------------- Instance Variables
private String foo = null;
private String bar = null;
/**
* Return the foo.
*/
public String getFoo() {
return (this.foo);
}
/**
* Set the foo.
*/
public void setFoo(String foo) {
this.foo = foo;
}
/**
* Return the bar.
*/
public String getBar() {
return (this.bar);
}
/**
* Set the bar.
*/
public void setBar(String bar) {
this.bar = bar;
}
/**
* 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.foo = null;
this.bar = null;
}
/**
* Validate the properties that have been set from this HTTP request,
* and return an ActionErrors object that encapsulates any
* validation errors that have been found. If no errors are found, return
* null or an ActionErrors 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);
}
}