Struts Portlet Framework

 

+

Search Tips   |   Advanced Search

 

Struts is a popular open source project for implementing Web applications using a Model-View-Controller design pattern. Struts has an active development community and continues to evolve. The user community is equally active and many Web applications have been implemented using Struts. The Struts framework can be used to effectively design the Web application. The framework supports both large or small development teams as well as organizations that need to split the development work between specialists (for example, between user interface designers and programmers). The reasons that Struts has became popular for the servlet environment apply for portlets as well. This document introduces the Struts Portlet Framework, which adds support for writing Struts applications that can be deployed in WebSphere Portal.

Developers that have worked with Struts in the servlet environment should adapt to the Struts Portlet Framework. The packaging of a Struts portlet application is very similar to a Struts application in the servlet environment. However, 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 following subtopics describe the development of Struts applications in the portal environment.

The Struts Portlet Framework ships several example WAR files, including source code, that demonstrate how to implement a Struts application in 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. These example files are located in...

portal_server_root/installableApps

 

Related information