struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Don Brown (JIRA)" <>
Subject [jira] Commented: (WW-2244) Make it easier to use custom ActionConfig
Date Thu, 01 Nov 2007 00:10:40 GMT


Don Brown commented on WW-2244:

If you are using Struts 2.0.x, specify your subclass in web.xml:

See also

If using Struts 2.1.x, simply declare it in your struts.xml as a bean that implements PackageProvider
and it will be picked up automatically.

Thanks for adding that ticket.  The lack of action name there has annoyed me as well.  When
you are sure this solution we discussed works, please close this ticket.  Thanks.

> Make it easier to use custom ActionConfig
> -----------------------------------------
>                 Key: WW-2244
>                 URL:
>             Project: Struts 2
>          Issue Type: Improvement
>            Reporter: John Lindal
>            Priority: Minor
>             Fix For: 2.1.4
> The only way that I have found to instantiate a derived class of ActionConfig is to re-implement
com.opensymphony.xwork2.config.impl.DefaultConfiguration.buildFullActionConfig().  Unfortunately,
this is private, so I also have to copy buildRuntimeconfiguration() and the entire RuntimeConfigurationImpl
class.  Copying code from the library into our own classes creates undesirable coupling!
> This would unnecessary if buildFullActionConfig() called a protected factory method to
construct the ActionConfig object, e.g.,
> protected ActionConfig constructActionConfig(packageContext, baseConfig, params, results,
interceptors, exceptionMappings);
> Of course, if I missed something, please let me know :)

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message