|
Operating systems: i5/OS, Linux,Windows |
The Struts Portlet Framework allows users to package Struts portlet applications to be deployed on multiple versions of WebSphere Portal Express. Struts portlet applications that use earlier versions of the Struts Portlet Framework can be migrated to V6.1. Migrating a Struts portlet application includes updating the Struts Portlet Framework JAR files, TLDs, and org.apache.commons.logging.LogFactory file. Some additional manual steps might be necessary, depending on which version of the Struts Portlet Framework that your application used.
The Struts Portlet Framework includes a version file that allows you to determine its version. The Framework version determines whether your Struts portlets need migrating.
The Struts Portlet Framework samples are in the installableApps directory of the WebSphere Portal Express installation. Sample application names begin with SPFLegacy and SPFStandard. The version information is inside the WAR files. To locate the version information for a given Struts application WAR file, inspect the contents of the PortalStruts.jar (IBM legacy container) or wp.struts.standard.framework.jar (standard container) in the WEB-INF/lib directory of the WAR file. The JAR file contains a version.properties file and a version.txt file or both. If neither of these files can be found, the manifest file might contain the necessary information.
For WebSphere Portal Express versions prior to 6.0, the Struts Portlet Framework samples and documentation are located in the dev/struts directory of the WebSphere Portal Express installation. The version.txt file in the dev/struts directory provides the version of the Struts Portlet Framework and the version of Apache Struts that is integrated in the package. Each WAR file in the dev/struts directory also contains the version file in the PortalStruts.jar. The sample applications also contain the version.txt file within the PortalStruts.jar inside the WEB-INF/lib directory of each WAR file.
If you are working with the Struts Portlet Framework from the Workplace Solutions Catalog, the version file is in the base directory of the catalog ZIP file and also in the PortalStruts.jar or wp.struts.standard.framework.jar located in the WEB-INF/lib directory of the sample WAR files.
In the current installation, locate SPFLegacyBlank.war and SPFStandardBlank.war in the installableApps directory. These applications contain the files that are needed to migrate a Struts portlet to Version 6.1 and can be used as templates. Use the SPFLegacyBlank.war to migrate an IBM legacy container Struts portlet. The SPFStandardBlank.war is used to migrate a Struts portlet to the standard container of the current version. Standard container Struts portlets can be deployed in WebSphere Portal Express starting in version 6.0. Portlets written for the legacy container can be migrated to use the Struts Portlet Framework for the standard container.