struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (WW-3552) FileUploadInterceptor and TokenInterceptor should use the configured custom TextProvider
Date Sat, 21 Jul 2012 11:49:35 GMT

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

Hudson commented on WW-3552:
----------------------------

Integrated in Struts2 #500 (See [https://builds.apache.org/job/Struts2/500/])
    WW-3552 adds usage of TextProvider to allow provide user's implementation (Revision 1364066)

     Result = SUCCESS
lukaszlenart : 
Files : 
* /struts/struts2/trunk/core/src/main/java/org/apache/struts2/StrutsConstants.java
* /struts/struts2/trunk/core/src/main/java/org/apache/struts2/config/BeanSelectionProvider.java
* /struts/struts2/trunk/core/src/main/java/org/apache/struts2/interceptor/FileUploadInterceptor.java
* /struts/struts2/trunk/core/src/main/java/org/apache/struts2/interceptor/TokenInterceptor.java
* /struts/struts2/trunk/core/src/main/resources/org/apache/struts2/struts-messages.properties
* /struts/struts2/trunk/core/src/main/resources/struts-default.xml
* /struts/struts2/trunk/core/src/test/java/org/apache/struts2/interceptor/FileUploadInterceptorTest.java
* /struts/struts2/trunk/core/src/test/resources/org/apache/struts2/interceptor
* /struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/DefaultLocaleProvider.java
* /struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/TextProviderFactory.java
* /struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/TextProviderSupport.java
* /struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/config/providers/XWorkConfigurationProvider.java

                
> FileUploadInterceptor and TokenInterceptor should use the configured custom TextProvider
> ----------------------------------------------------------------------------------------
>
>                 Key: WW-3552
>                 URL: https://issues.apache.org/jira/browse/WW-3552
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Interceptors
>    Affects Versions: 2.2.1
>            Reporter: Herbert
>            Assignee: Lukasz Lenart
>             Fix For: 2.3.1
>
>
> Struts2 supports the usage of a custom text provider by setting some environment constants
in struts.xml:
> example:
> <bean class="test.CustomTextProvider" name="myTextProvider" type="com.opensymphony.xwork2.TextProvider"
/> 
> <constant name="struts.xworkTextProvider" value="myTextProvider" />
> The struts2 core FileUploadInterceptor and the TokenInterceptor don't use this new custom
TextProvider hence they use  XWork's LocalizedTextUtil class to lookup translations. Why the
translations don't get resolved via an injected TextProvider?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message