com.actuate.activeportal.forms
Class FileUploadActionForm

java.lang.Object
  extended by org.apache.struts.action.ActionForm
      extended by com.actuate.activeportal.forms.BaseActionForm
          extended by com.actuate.activeportal.forms.FileUploadActionForm
All Implemented Interfaces:
java.io.Serializable

public class FileUploadActionForm
extends BaseActionForm

This form is used to upload images and stores an object representation of the uploaded file that needs to be saved. It is used in skin customization page for uploading images. It uses struts org.apache.struts.upload.FormFile to handle the file upload. The file will be saved in a temporary location on the server.

See Also:
Serialized Form

Constructor Summary
FileUploadActionForm()
           
 
Method Summary
 java.lang.String getFilePath()
          Returns the location of the uploaded file in the server.
 org.apache.struts.upload.FormFile getTheFile()
          Retrieve a representation of the file the user has uploaded
 boolean isUploaded()
          Returns the flag if the file is uploaded
 void setFilePath(java.lang.String string)
          Sets the location of the uploaded file in the server.
 void setTheFile(org.apache.struts.upload.FormFile theFile)
          Set a representation of the file the user has uploaded
 void setUploaded(boolean b)
          Sets the flag if the file is uploaded
 
Methods inherited from class com.actuate.activeportal.forms.BaseActionForm
fixUTF8, isPostback, setPostback
 
Methods inherited from class org.apache.struts.action.ActionForm
getMultipartRequestHandler, getServletWrapper, reset, reset, setMultipartRequestHandler, setServlet, validate, validate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileUploadActionForm

public FileUploadActionForm()
Method Detail

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


getFilePath

public java.lang.String getFilePath()
Returns the location of the uploaded file in the server.


setFilePath

public void setFilePath(java.lang.String string)
Sets the location of the uploaded file in the server.


isUploaded

public boolean isUploaded()
Returns the flag if the file is uploaded


setUploaded

public void setUploaded(boolean b)
Sets the flag if the file is uploaded