Die Struts Portlet Framework (JSR168) - FileUpload-Beispielanwendung |
Dieses Beispiel erstellt ein Portlet, das die Anwendung zum Hochladen von Dateien (SPFStandardFileUpload.war) enthält, die zum Lieferumfang von Struts Portlet Framework WPS51 gehört. Es veranschaulicht, wie die Funktion commons-fileupload in einem Struts-Portlet verwendet wird. Die Funktionen zum Hochladen von Dateien sind in der Implementierung ähnlich wie in der Servletumgebung. Die Struts-Dateikennung wird in gleicher Weise ohne Änderungen an der JSP verwendet und die Struts-Aktion verwendet ein 'ActionForm', das über ein Merkmal von org.apache.struts.upload.FormFile verfügt. Die Anwendung wurde zudem unter Verwendung der Tiles-Unterstützung in Jakarta Struts geschrieben. Weitere Informationen zu Struts Portlet Framework finden Sie im 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. |
![]() |
![]() |