|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.struts.action.ActionForm | +--org.enableit.db.darrt.web.UploadForm
Struts form supporting the Upload Action.
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 |
public static final java.lang.String ERROR_PROPERTY_MAX_LENGTH_EXCEEDED
Constructor Detail |
public UploadForm()
Method Detail |
public java.lang.String getTheText()
public void setTheText(java.lang.String theText)
public org.apache.struts.upload.FormFile getTheFile()
public void setTheFile(org.apache.struts.upload.FormFile theFile)
public void setWriteFile(boolean writeFile)
public boolean getWriteFile()
public void setFilePath(java.lang.String filePath)
public java.lang.String getFilePath()
public void reset()
public org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request)
validate
in class org.apache.struts.action.ActionForm
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |