struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Don Brown (JIRA)" <>
Subject [jira] Commented: (WW-1522) Automatic Alias ActionConfigs
Date Mon, 01 Jan 2007 09:28:16 GMT


Don Brown commented on WW-1522:

To resolve this issue, we need to find a way to post-process a built configuration object,
in order to scan for loaded action configs and build some more.  The easiest solution would
be to simply put the code in DefaultConfiguration.  A close second would be to add a hook
in the building of runtime configuration in DefaultConfiguration then subclass DefaultConfiguration
for Struts, putting the code there.  Another possibility would be to add a method to ConfigurationProvider
so that a provider would have a chance at modifying the runtime configuration.  Of the three,
I like the second option.

> Automatic Alias ActionConfigs
> -----------------------------
>                 Key: WW-1522
>                 URL:
>             Project: Struts 2
>          Issue Type: Improvement
>            Reporter: Ted Husted
>         Assigned To: Ted Husted
>             Fix For: 2.0.3
> Create ActionConfigs for Action class methods that do not already have aliases
> The initial "dynamic method invocation" implementation does not create an ActionConfig,
but scans for a "!" and invokes the method directly. The implementation doesn't allow these
alias methods to be browsed, overrridden with static actions, nor can they have their own
validators, type convertors or resources. 
> Rather than scan for dynamic method references at run time, an alternate approach would
be to scan the configuration when it is first loaded and create ActionConfigs for all potential
alias methods. 
> See also

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


View raw message