[ 
https://issues.apache.org/jira/browse/WW-3008?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Lukasz Lenart resolved WW-3008.
-------------------------------

       Resolution: Fixed
    Fix Version/s:     (was: 3.0)
                   2.3.x

Already solved
                
> File Upload Interceptor doesn't display i18n message while error occured.
> -------------------------------------------------------------------------
>
>                 Key: WW-3008
>                 URL: https://issues.apache.org/jira/browse/WW-3008
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Interceptors
>    Affects Versions: 2.1.6
>         Environment: Tomcat6, Jboss-Web 2.1.1,Jetty 6.1
>            Reporter: Ken
>             Fix For: 2.3.x
>
>
> As it described in the document: 
> http://cwiki.apache.org/WW/file-upload-interceptor.html 
> This interceptor will add several field errors, assuming that the action 
> implements ValidationAware. These error messages are based on several i18n 
> values stored in struts-messages.properties, a default i18n file processed 
> for all i18n requests. You can override the text of these messages by 
> providing text for the following keys: 
> struts.messages.error.uploading - a general error that occurs when the file 
> could not be uploaded 
> struts.messages.error.file.too.large - occurs when the uploaded file is too 
> large 
> struts.messages.error.content.type.not.allowed - occurs when the uploaded 
> file does not match the expected content types specified 
> but in fact it doen't show these messages.I followe the code into the 
> interceptor,and find it only catch the exceptions and add the exception's 
> message simplely by invoke addActionError method.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to