org.apache.struts2.showcase.filedownload
Class FileDownloadAction
java.lang.Object
org.apache.struts2.showcase.filedownload.FileDownloadAction
- All Implemented Interfaces:
- Action
public class FileDownloadAction
- extends java.lang.Object
- implements Action
Demonstrates file resource download.
Set filePath to the local file resource to download,
relative to the application root ("/images/struts.gif").
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileDownloadAction
public FileDownloadAction()
setInputPath
public void setInputPath(java.lang.String value)
getInputStream
public java.io.InputStream getInputStream()
throws java.lang.Exception
- Throws:
java.lang.Exception
execute
public java.lang.String execute()
throws java.lang.Exception
- Specified by:
execute in interface Action
- Throws:
java.lang.Exception
Copyright © 2000-2010 Apache Software Foundation. All Rights Reserved.