Struts JSR-168 portlet dispatcher. Similar to the WW2 Servlet dispatcher, but adjusted to a portal environment. The portlet is configured through the portlet.xml descriptor. Examples and descriptions follow below:
@author Nils-Helge Garli
@author Rainer Hermanns
Init parameters
Name | Description | Default value |
portletNamespace | The namespace for the portlet in the xwork configuration. This namespace is prepended to all action lookups, and makes it possible to host multiple portlets in the same portlet application. If this parameter is set, the complete namespace will be /portletNamespace/modeNamespace/actionName | The default namespace |
viewNamespace | Base namespace in the xwork configuration for the view portlet mode | The default namespace |
editNamespace | Base namespace in the xwork configuration for the edit portlet mode | The default namespace |
helpNamespace | Base namespace in the xwork configuration for the help portlet mode | The default namespace |
defaultViewAction | Default action to invoke in the view portlet mode if no action is specified | default |
defaultEditAction | Default action to invoke in the edit portlet mode if no action is specified | default |
defaultHelpAction | Default action to invoke in the help portlet mode if no action is specified | default |
Example:
<init-param> <!-- The view mode namespace. Maps to a namespace in the xwork config file --> <name>viewNamespace</name> <value>/view</value> </init-param> <init-param> <!-- The default action to invoke in view mode --> <name>defaultViewAction</name> <value>index</value> </init-param> <init-param> <!-- The view mode namespace. Maps to a namespace in the xwork config file --> <name>editNamespace</name> <value>/edit</value> </init-param> <init-param> <!-- The default action to invoke in view mode --> <name>defaultEditAction</name> <value>index</value> </init-param> <init-param> <!-- The view mode namespace. Maps to a namespace in the xwork config file --> <name>helpNamespace</name> <value>/help</value> </init-param> <init-param> <!-- The default action to invoke in view mode --> <name>defaultHelpAction</name> <value>index</value> </init-param>