Struts Portlet Framework examples


The Struts Portlet Framework in WebSphere Portal includes sample applications for both JSR 168 and IBM containers. These samples demonstrate the use of the framework. The previous releases of the Struts Portlet Framework supported only the IBM container.

All sample portlets are available in the wp_root/installableApps directory. Subsequent updates of these samples will be available from the portlet catalog by searching for navcode 1WP10004N. See Sample portlets for more information.

The following lists the examples for the IBM container.

  • SPFLegacyClock.war
  • SPFLegacyCommandManager.war
  • SPFLegacyEditMode.war
  • SPFLegacyFileUpload.war
  • SPFLegacyLookupAction.war
  • SPFLegacyMailReader.war
  • SPFLegacyPlugins.war
  • SPFLegacyStockQuote.war
  • SPFLegacyTiles.war
  • SPFLegacyTransformation.war

The following lists the examples for the JSR 168 compliant container.

  • SPFStandardBlank.war
  • SPFStandardClock.war
  • SPFStandardCommandManager.war
  • SPFStandardEditMode.war
  • SPFStandardFileUpload.war
  • SPFStandardLookupAction.war
  • SPFStandardMailReader.war
  • SPFStandardPlugins.war
  • SPFStandardStockQuote.war
  • SPFStandardTiles.war
  • SPFStandardTransformation.war

The following lists a short description of each sample.

  • Blank: These are similar to the Jakarta Struts blank and can be used to obtain the minimum set of files for developing a Struts application for WebSphere Portal.
  • Clock: This is an example of the new IStrutsPrepareRender interface.
  • CommandManager: This demonstrates how to implement a custom command manager.
  • EditMode: This demonstrates how to use edit mode to configure an application on the two containers.
  • FileUpload: This demonstrates the use of the commons-fileupload framework in a Struts application.
  • LookupAction: This demonstrates the use of the portal friendly lookup dispatch action.
  • MailReader: This is the same example shipped by Jakarta Struts modified to be deployable in WebSphere Portal.
  • Plugins: This demonstrates how to change the ViewCommandFactory to create custom commands.
  • StockQuote: This demonstrates the use of the IStrutsPrepareRender interface.
  • Tiles: This demonstrates the use of Tiles in the Struts framework.
  • Transformation: This demonstrates using the IStrutsPrepareRender interface to apply a style sheet to XML data.

See also

Home |

 

WebSphere is a trademark of the IBM Corporation in the United States, other countries, or both.

 

IBM is a trademark of the IBM Corporation in the United States, other countries, or both.