org.appfuse.webapp.form
Class UploadForm
java.lang.Object
org.apache.struts.action.ActionForm
org.apache.struts.validator.ValidatorForm
org.appfuse.webapp.form.BaseForm
org.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
|
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 |
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
UploadForm
public UploadForm()
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