[ 
https://issues.apache.org/jira/browse/WW-5301?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17706296#comment-17706296
 ] 

Lukasz Lenart commented on WW-5301:
-----------------------------------

Right, I messed up the files, {{struts.xml}} should be loaded as the last one. 
The current order is like this 
{{struts-default.xml,struts-plugin.xml,struts.xml}}. And probably the 
_extension point_ needs some tuning, see how I implemented using different 
[DateFormatters|https://github.com/apache/struts/pull/529/files] - I defined 
two beans with unique names and defined an alias
{code:java}
alias(DateFormatter.class, StrutsConstants.STRUTS_DATE_FORMATTER, builder, 
props, Scope.SINGLETON);
{code}
and assigned one those beans as a default one
{code}
struts.date.formatter=dateTimeFormatter
{code}

> Impossible to select alternate default VelocityManager bean
> -----------------------------------------------------------
>
>                 Key: WW-5301
>                 URL: https://issues.apache.org/jira/browse/WW-5301
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core, Plugin - Velocity
>    Affects Versions: 6.1.1
>            Reporter: Kusal Kithul-Godage
>            Priority: Major
>
> I'm possibly missing something here but as far as I can tell 
> struts-plugin.xml is always loaded before struts.xml.
> Changing the load order here probably isn't a good solution either.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to