Struts integration with cooperative portlets


Struts is a popular programming model for servlets based on the MVC paradigm. WebSphere Portal supports the integration of Struts applications into the portal environment. (see Struts Portlet Framework for details).

Portlets developed using Struts can take advantage of the property broker by following the enablement steps. Struts actions need to be declared in a WSDL file by setting the type attribute on the action element to "struts". This is an indication to the property broker to use a special binding to support Struts actions. Click-to-Action portlets that used <portlet:binding style="struts"> in previous releases are still supported, although this type of declaration is deprecated.

The only valid value for the boundTo attribute for input parameters for Struts actions is "request-parameter". This value is also the default value, so this attribute can be omitted.

Input parameters will always be set on the form bean associated with the Struts action. For output parameters, the same choices apply as for default (non-Struts) bindings.

The Order Details portlet is also provided in the wp_root/installableApps directory as an example Struts portlet using Click-to-Action.

See also