org.appfuse.webapp.form
Class UploadForm

java.lang.Object
  extended byorg.apache.struts.action.ActionForm
      extended byorg.apache.struts.validator.ValidatorForm
          extended byorg.appfuse.webapp.form.BaseForm
              extended byorg.appfuse.webapp.form.UploadForm
All Implemented Interfaces:
Serializable

public class UploadForm
extends BaseForm

This class is modeled after the UploadForm from the struts-upload example application. For more information on implementation details, please see that application.

Version:
$Revision: 1.6 $ $Date: 2004/03/31 13:04:28 $
Author:
Matt Raible
See Also:
Serialized Form

Field Summary
static String ERROR_PROPERTY_MAX_LENGTH_EXCEEDED
           
protected  String name
          The value of the text the user has sent as form data
protected  FormFile theFile
          The file that the user has uploaded
 
Fields inherited from class org.apache.struts.validator.ValidatorForm
page, validatorResults
 
Fields inherited from class org.apache.struts.action.ActionForm
multipartRequestHandler, servlet
 
Constructor Summary
UploadForm()
           
 
Method Summary
 String getName()
          Retrieve the name the user has given the uploaded file
 FormFile getTheFile()
          Retrieve a representation of the file the user has uploaded
 void setName(String name)
          Set the name of the uploaded file (by the user)
 void setTheFile(FormFile theFile)
          Set a representation of the file the user has uploaded
 
Methods inherited from class org.appfuse.webapp.form.BaseForm
toString, validate
 
Methods inherited from class org.apache.struts.validator.ValidatorForm
getPage, getResultValueMap, getValidatorResults, log, log, reset, setPage, setValidatorResults
 
Methods inherited from class org.apache.struts.action.ActionForm
getMultipartRequestHandler, getServlet, getServletWrapper, reset, setMultipartRequestHandler, setServlet, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ERROR_PROPERTY_MAX_LENGTH_EXCEEDED

public static final String ERROR_PROPERTY_MAX_LENGTH_EXCEEDED
See Also:
Constant Field Values

name

protected String name
The value of the text the user has sent as form data


theFile

protected FormFile theFile
The file that the user has uploaded

Constructor Detail

UploadForm

public UploadForm()
Method Detail

getName

public String getName()
Retrieve the name the user has given the uploaded file

Returns:
the file's name

setName

public void setName(String name)
Set the name of the uploaded file (by the user)

Parameters:
name -

getTheFile

public FormFile getTheFile()
Retrieve a representation of the file the user has uploaded

Returns:
FormFile the uploaded file

setTheFile

public void setTheFile(FormFile theFile)
Set a representation of the file the user has uploaded

Parameters:
theFile - the file to upload


Copyright © 2002-2004