struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bob Lee" <crazy...@crazybob.org>
Subject Re: [action2] Proposal: Remove explicit support for action!method syntax
Date Mon, 12 Jun 2006 01:47:39 GMT
I finally understand wildcards! Can you give an example of using more
than one wildcard in an action name?

Bob

On 6/11/06, Don Brown <mrdon@twdata.org> wrote:
> With XWork now supporting wildcards in xwork.xml, I think it is time to
> remove the explicit support for the fooAction!barMethod.action syntax.
>  From a reading of our tickets, the legacy support for that syntax is
> affecting the framework in strange ways, and now that we have wildcards,
> they can be completely simulated.
>
> In this case, the syntax can preserved with wildcards.  For example:
>
> <action name="foo!*" method="{1}">
> ...
> </action>
>
> A few reasons to do this:
>  - Support was source of bugs
>  - Possible security hole
>  - The old argument that the number of action mapping would explode can
> be mitigated with wildcards
>  - Wildcards are much more flexible, and make automatic choosing of
> methods an explicit decision on the part of the user
>
> Thoughts?
>
> Don
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> For additional commands, e-mail: dev-help@struts.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Mime
View raw message