Struts Portlet Framework

The Struts Portlet Framework (SPF) is built on top of the Struts framework contributed by Apache as part of the Jakarta project. The Rational® Software Development Platform provides Struts development tools for both Web applications and portlet applications. The primary goal of SPF is to enable Struts programmers to easily create portlets based on Struts conventions without requiring a great deal of knowledge about portlets.

SPF provides modified TLD files so that appropriate classes can be referenced within the portlet JSP files. The implementation of these classes resides in additional JAR files included in SPF. Depending on whether the application is running in a Portal or standard Web application environment, the classes determine whether to use portlet-based Struts code or standard Struts code.
Note: Struts tags should render in Page Designer the same way in both environments.

Due to a unique namespace requirement, you must ensure that Apache's JavaScript™ in your JSP files refer to forms in their own unique namespace. To simplify this process, an additional attribute, validate, is provided for <html:form> and <html:link>. Instead of using: onSubmit="validateActionForm()", you should set the attribute validate to "true".

For a full description of the Struts Portlet Framework and details about implementing the framework in the WebSphere® Portal environment, see the WebSphere Portal Information Center.

Related concepts
Struts portlet applications
Creating Struts portlets and projects
Creating data access Web applications using Struts
Related tasks
Creating Struts portlet projects
Creating Struts applications
Related reference
Differences between Struts 1.1 and SPF tag library classes
Feedback
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.