Struts Portlet Framework (JSR168) File Upload Application Sample

This sample creates a portlet that contains the file upload application, SPFStandardFileUpload.war, that comes with the Struts Portlet Framework distribution. It demonstrates how to use the commons-fileupload feature in a Struts portlet. The file upload features are implementation similar to the way they are in the servlet enviroment. The Struts file tag is used in the same way without change in the JSP, and the Struts Action uses an ActionForm that has a property of the org.apache.struts.upload.FormFile. The application is also written using the Tiles support in Jakarta Struts.

You can find more information about the Struts Portlet Framework from the WebSphere Portal Information Center.


Disclaimer - Non-IBM Code

This sample code is part of the Struts Portlet Framework (JSR 168) provided by IBM WebSphere Portal. Much of the code in this sample was modified from the Struts open source project, not IBM, and is not part of any standard IBM product. This sample code is provided solely for the purpose of assisting you in the development of your Struts portlet JSR 168 applications. The code is provided 'AS IS', without warranty or condition of any kind. IBM shall not be liable for any damages arising out of your use of the sample code, even if IBM has been advised of the possibility of such damages.


Time icon  Import and configure: 2 minutes
Import the sample  Import the sample