christian reichlin wrote:

> hi,
>
> im looking for an easy way to "configure" actions.
>

One general approach to this comes from the fact that you can subclass the
ActionMapping class with your own, which could then include some additional
properties.  Then, you could say:

    <action className="com.mycompany.MyActionMapping
      path="/...">
        <parameter name="requiredFields" value="....."/>
    </action>

Now, when your action's perform() method is called, a reference to the
ActionMapping is passed, and you can call:

    String requiredFields =
      ((MyActionMapping) mapping).getRequiredFields();


> christian

Craig


Reply via email to