org.enableit.db.darrt.web
Class UploadForm

java.lang.Object
  |
  +--org.apache.struts.action.ActionForm
        |
        +--org.enableit.db.darrt.web.UploadForm
All Implemented Interfaces:
java.io.Serializable

public class UploadForm
extends org.apache.struts.action.ActionForm

Struts form supporting the Upload Action.

Author:
Tim Stephenson (based on Struts upload example)
See Also:
Serialized Form

Field Summary
static java.lang.String ERROR_PROPERTY_MAX_LENGTH_EXCEEDED
           
 
Fields inherited from class org.apache.struts.action.ActionForm
multipartRequestHandler, servlet
 
Constructor Summary
UploadForm()
          Default constructor.
 
Method Summary
 java.lang.String getFilePath()
          Get the path to write a file to
 org.apache.struts.upload.FormFile getTheFile()
          Retrieve a representation of the file the user has uploaded
 java.lang.String getTheText()
          Retrieve the value of the text the user has sent as form data
 boolean getWriteFile()
          Get whether or not to write to a file
 void reset()
           
 void setFilePath(java.lang.String filePath)
          Set the path to write a file to
 void setTheFile(org.apache.struts.upload.FormFile theFile)
          Set a representation of the file the user has uploaded
 void setTheText(java.lang.String theText)
          Set the value of the form data text
 void setWriteFile(boolean writeFile)
          Set whether or not to write to a file
 org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request)
          Check to make sure the client hasn't exceeded the maximum allowed upload size inside of this validate method.
 
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
 

Field Detail

ERROR_PROPERTY_MAX_LENGTH_EXCEEDED

public static final java.lang.String ERROR_PROPERTY_MAX_LENGTH_EXCEEDED
See Also:
Constant Field Values
Constructor Detail

UploadForm

public UploadForm()
Default constructor.

Method Detail

getTheText

public java.lang.String getTheText()
Retrieve the value of the text the user has sent as form data


setTheText

public void setTheText(java.lang.String theText)
Set the value of the form data text


getTheFile

public org.apache.struts.upload.FormFile getTheFile()
Retrieve a representation of the file the user has uploaded


setTheFile

public void setTheFile(org.apache.struts.upload.FormFile theFile)
Set a representation of the file the user has uploaded


setWriteFile

public void setWriteFile(boolean writeFile)
Set whether or not to write to a file


getWriteFile

public boolean getWriteFile()
Get whether or not to write to a file


setFilePath

public void setFilePath(java.lang.String filePath)
Set the path to write a file to


getFilePath

public java.lang.String getFilePath()
Get the path to write a file to


reset

public void reset()

validate

public org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping mapping,
                                                      javax.servlet.http.HttpServletRequest request)
Check to make sure the client hasn't exceeded the maximum allowed upload size inside of this validate method.

Overrides:
validate in class org.apache.struts.action.ActionForm


Copyright © 1999-2004 enableIT.org. All Rights Reserved.