Update of /cvsroot/ejtools/applications/jmx.browser/src/main/net/sourceforge/ejtools/jmxbrowser/web/form
In directory usw-pr-cvs1:/tmp/cvs-serv29407/main/net/sourceforge/ejtools/jmxbrowser/web/form
Added Files:
DetailForm.java
Log Message:
Initial Import
--- NEW FILE: DetailForm.java ---
package net.sourceforge.ejtools.jmxbrowser.web.form;
import javax.servlet.http.*;
import org.apache.struts.action.*;
/**
* Description of the Class
*
* @author letiembl
* @created 13 février 2002
*/
public final class DetailForm extends ActionForm
{
private String reference = null;
/** Constructor for the ConnectForm object */
public DetailForm()
{
}
/**
* Setter for the factory attribute
*
* @param factory The new value for factory attribute
*/
public void setReference(String reference )
{
this.reference = reference ;
}
/**
* Getter for the factory attribute
*
* @return The value of factory attribute
*/
public String getReference()
{
return reference ;
}
/**
* Description of the Method
*
* @param mapping Description of Parameter
* @param request Description of Parameter
*/
public void reset(ActionMapping mapping, HttpServletRequest request)
{
}
/**
* Description of the Method
*
* @param mapping Description of Parameter
* @param request Description of Parameter
* @return Description of the Returned Value
*/
public ActionErrors validate(ActionMapping mapping, HttpServletRequest request)
{
ActionErrors errors = new ActionErrors();
if ((reference == null) || (reference.length() < 1))
{
errors.add("reference", new ActionError("error.factory.required"));
}
return errors;
}
}
|