[
https://issues.apache.org/jira/browse/WW-4468?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14350850#comment-14350850
]
Lukasz Lenart commented on WW-4468:
-----------------------------------
There is support for I18N already, see this exercise
{code:java}
String messageKey = "struts.message.upload.message." +
e.getClass().getSimpleName();
{code}
the only problem I see is that on
{{FileUploadBase.FileSizeLimitExceededException}} exception {{buildMessage}} is
called instead of {{buildErrorMessage}} which uses
{code:java}
String errorKey = "struts.message.upload.error." + e.getClass().getSimpleName();
{code}
so I can switch this and it should be done :)
> Make error message configurable when uploaded file is too big
> (JakartaStreamMultiPartRequest)
> ---------------------------------------------------------------------------------------------
>
> Key: WW-4468
> URL: https://issues.apache.org/jira/browse/WW-4468
> Project: Struts 2
> Issue Type: Improvement
> Components: Core Actions
> Affects Versions: 2.3.20
> Reporter: Christoph Nenning
> Priority: Minor
> Fix For: 2.3.22
>
>
> JakartaStreamMultiPartRequest generates an error message (an action error?)
> when uploaded files are too big.
> Currently this message can not be configured which might not be acceptable by
> many applications.
> This issue was first reported on -user list.
> JakartaStreamMultiPartRequest was introduced by WW-3025
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)