Struts Configuration

Plugin

The forms 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 forms plugin -->
  <plug-in className="de.odysseus.calyxo.struts.forms.FormsPlugIn">
    <set-property property="config" value="/WEB-INF/calyxo-forms-config.xml"/>
  </plug-in>

</struts-config>

The forms plugin takes a mandatory config parameter to specify the Calyxo Forms configuration file.

Form Beans

Generally, a <form-bean>'s name attribute references a form in the Calyxo Forms configuration file.

Depending on if you want to use Struts' html tag library or the Calyxo Forms form/input tags, you will need to use different action form classes. Please refer to the sections on Struts Legacy Forms and Calyxo Action Forms, respectively.

Actions

Struts <action> elements are configured for validation as usual.