FileDocCategorySizeDatePackage
FileUploadAction.javaAPI DocApache Struts 2.0.9 Apps2621Mon Jul 23 13:43:26 BST 2007org.apache.struts2.showcase.fileupload

FileUploadAction

public class FileUploadAction extends com.opensymphony.xwork2.ActionSupport
Show case File Upload example's action. FileUploadAction

Fields Summary
private static final long
serialVersionUID
private String
contentType
private File
upload
private String
fileName
private String
caption
Constructors Summary
Methods Summary
public java.lang.StringgetCaption()

        return caption;
    
public java.io.FilegetUpload()

        return upload;
    
public java.lang.StringgetUploadContentType()

        return contentType;
    
public java.lang.StringgetUploadFileName()


    // since we are using <s:file name="upload" .../> the file name will be
    // obtained through getter/setter of <file-tag-name>FileName
       
        return fileName;
    
public java.lang.Stringinput()

        return SUCCESS;
    
public voidsetCaption(java.lang.String caption)

        this.caption = caption;
    
public voidsetUpload(java.io.File upload)

        this.upload = upload;
    
public voidsetUploadContentType(java.lang.String contentType)

        this.contentType = contentType;
    
public voidsetUploadFileName(java.lang.String fileName)

        this.fileName = fileName;
    
public java.lang.Stringupload()

        return SUCCESS;