Update of /cvsroot/ejtools/applications/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser/web/form
In directory usw-pr-cvs1:/tmp/cvs-serv18235/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser/web/form
Added Files:
ViewForm.java
Log Message:
Basic Web App
--- NEW FILE: ViewForm.java ---
/*
* EJTools, the Enterprise Java Tools
*
* Distributable under LGPL license.
* See terms of license at www.gnu.org.
*/
package net.sourceforge.ejtools.jndibrowser.web.form;
import javax.servlet.http.HttpServletRequest;
import net.sourceforge.ejtools.jndibrowser.model.Server;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;
/**
* Description of the Class
*
* @author letiemble
* @created 13 février 2002
* @todo Javadoc to complete
*/
public class ViewForm extends ActionForm
{
/** Description of the Field */
protected int searchType = Server.SHALLOW_SEARCH;
/** Constructor for the ViewForm object */
public ViewForm() { }
/**
* Gets the searchType attribute of the ViewForm object
*
* @return The searchType value
*/
public int getSearchType()
{
return searchType;
}
/**
* Description of the Method
*
* @param mapping Description of the Parameter
* @param request Description of the Parameter
*/
public void reset(ActionMapping mapping, HttpServletRequest request)
{
this.searchType = Server.SHALLOW_SEARCH;
}
/**
* Sets the searchType attribute of the ViewForm object
*
* @param searchType The new searchType value
*/
public void setSearchType(int searchType)
{
this.searchType = searchType;
}
/**
* Description of the Method
*
* @param mapping Description of the Parameter
* @param request Description of the Parameter
* @return Description of the Return Value
*/
public ActionErrors validate(ActionMapping mapping, HttpServletRequest request)
{
return new ActionErrors();
}
}
|