15.1 Overview
Struts portlet projects share common characteristics with standard portlets and Struts projects, although there are some differences that you should be aware of. The Struts portlet project structure and related resources are dictated by the Struts portlet framework support provided by WebSphere Portal and included in Rational Application Developer.
Struts portlet projects are created using the New Portlet Project wizard. A default Struts-type portlet and, optionally, a Web diagram file, will be added in the process of creating the project. The wizard automatically generates Struts portlet configuration files and the necessary updates to the web.xml file, and adds all of the Struts portlet framework tag libraries and JAR files to the project in the directory structure that is required.
Edit mode support will also be added to show how you can update portlet objects (portlet preferences) in order to store user preferences. The sections in this chapter show how a Struts portlet application is created in Rational Application Developer, and configured to work with the JSR 168 Portlet API.
Note: The sample scenario described in this chapter requires WebSphere Portal Test Environment version 5.1.0.1.
The sample scenario described in this chapter is illustrated in Figure 15-1.
Figure 15-1 JSR 168 Struts portlet
ibm.com/redbooks