Struts Portlet Framework
Struts is an open source project for implementing Web applications using a Model-View-Controller design pattern.
The packaging of a Struts portlet application is very similar to a Struts application in the servlet environment. However, HCL WebSphere Portal also introduces additional concepts, such as portlet modes, multiple device support, and portlet communication, that might need to be addressed by the Struts application. This document provides information about special considerations when developing Struts applications for the portlet environment.
The Struts Portlet Framework ships several example WAR files, including source code, that demonstrate how to implement a Struts application in HCL WebSphere Portal and also how to exploit portal features, such as portlet modes and device support. Throughout this documentation, source code from SPFLegacyMailReader.war and SPFStandardMailer.war is used to demonstrate the changes necessary to enable a Struts Web application to be deployed and run as a portlet. SPFLegacyMailReader.war is available on the HCL WebSphere Portal Catalog.
The following subtopics describe the development of Struts applications in the portal environment.
See
- Changes to Struts application code
- Changes to Struts JSPs
- Changes to configuration files
- Support multiple Struts applications
- Create link tags in Struts
- Formatting XML documents with XSLT
- Static content in Struts
- Migrate existing Struts applications
Parent Develop portletsRelated concepts:
Portlet communication
Portlet creation basics
Related information
The Struts Application Framework