Struts Configuration
The panels plugin requires the base plugin to be installed. In the Struts configuration, the base plugin must be declared before the forms plugin:
<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 1.2//EN"
"http://struts.apache.org/dtds/struts-config_1_2.dtd">
<struts-config>
...
<!-- load base plugin -->
<plug-in className="de.odysseus.calyxo.struts.base.BasePlugIn"/>
<!-- load panels plugin -->
<plug-in className="de.odysseus.calyxo.struts.panels.PanelsPlugIn">
<set-property property="config" value="/WEB-INF/calyxo-panels-config.xml"/>
</plug-in>
</struts-config>
The panels plugin takes a mandatory config parameter to specify the Calyxo Panels configuration file.
Struts 1.3
Struts 1.3 requires to configure the request processing chain via XML in order to use Calyxo Panels. The Calyxo Struts jar contains a chain definition which emulates Struts 1.2 and adds the Calyxo Panels commands. The chainConfig module parameter must be set to use this configuration instead of the default:
<init-param>
<param-name>chainConfig</param-name>
<param-value>
de/odysseus/calyxo/struts/panels/calyxo-panels-chain-config.xml
</param-value>
</init-param>
Note
The above example configures the default module's chain. If you're using Struts
modules, module foo will take parameter foo/chainConfig,
module bar will take parameter bar/chainConfig and so on.


