Expresso 5-5-0

com.jcorporate.expresso.core.controller
Class DefaultForm

java.lang.Object
  extended byorg.apache.struts.action.ActionForm
      extended bycom.jcorporate.expresso.core.controller.DefaultForm
All Implemented Interfaces:
Serializable

public class DefaultForm
extends org.apache.struts.action.ActionForm
implements Serializable

*

This class is a bridge between Expresso's Controller system and the Struts Action Form. It is automatically utilized by Expresso and you don't have to directly deal with it.

Since:
Expresso 4.0
Version:
$Revision: 1.10 $ on $Date: 2003/11/26 10:42:05 $
Author:
Michael Nash
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.struts.action.ActionForm
multipartRequestHandler, servlet
 
Constructor Summary
DefaultForm()
           
 
Method Summary
 void clear()
           
 Object getAttribute(String fieldName)
          Returns the attribute that has been set for a particular field OR null if it doesn't exist.
 Hashtable getAttributes()
          Returns the attributes Hashtable.
 String getField(String fieldName)
           
 Hashtable getFields()
           
 void restoreForm(ControllerRequest req)
           
 void saveForm(ControllerRequest req)
           
 void setAttribute(String fieldName, Object newValue)
           
 void setField(String fieldName, String fieldValue)
           
 void setUsingHashtableParameters(Hashtable parameters)
           
 org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping mapping, ServletRequest request)
           
 
Methods inherited from class org.apache.struts.action.ActionForm
getMultipartRequestHandler, getServlet, getServletWrapper, reset, reset, setMultipartRequestHandler, setServlet, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultForm

public DefaultForm()
Method Detail

validate

public org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping mapping,
                                                      ServletRequest request)

saveForm

public void saveForm(ControllerRequest req)
              throws ControllerException
Throws:
ControllerException

restoreForm

public void restoreForm(ControllerRequest req)
                 throws ControllerException
Throws:
ControllerException

getFields

public Hashtable getFields()

clear

public void clear()

setAttribute

public void setAttribute(String fieldName,
                         Object newValue)

setField

public void setField(String fieldName,
                     String fieldValue)
              throws ControllerException
Throws:
ControllerException

setUsingHashtableParameters

public void setUsingHashtableParameters(Hashtable parameters)
                                 throws ControllerException
Throws:
ControllerException

getAttribute

public Object getAttribute(String fieldName)
                    throws ControllerException
Returns the attribute that has been set for a particular field OR null if it doesn't exist.

Throws:
ControllerException - if fieldName is blank.

getAttributes

public Hashtable getAttributes()
Returns the attributes Hashtable.


getField

public String getField(String fieldName)
                throws ControllerException
Throws:
ControllerException

Expresso 5-5-0

Please see www.jcorporate.com for information about new Expresso releases.