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
- parameters for actions christian reichlin
- struts-example - handle of ServletException Craig R. McClanahan
- struts-example - handle of ServletException Maya Muchnik
- Re: struts-example - handle of ServletExc... Jean-No�l Ribette
- Re: struts-example - handle of Servle... Maya Muchnik
- Re: struts-example - handle of S... Peter Alfors
- Re: struts-example - handle ... Maya Muchnik
- Re: struts-example - handle of ServletExc... David Winterfeldt
- Re: struts-example - handle of Servle... Maya Muchnik
- Re: struts-example - handle of ServletExc... Incze Lajos
- Re: struts-example - handle of Servle... Maya Muchnik
- RE: parameters for actions Scott Sayles

