title: How to override struts 2.2.3.1 file upload messages?
body: <p>The <code>struts.messages.error.file.too.large</code> or <code>struts.messages.error.content.type.not.allowed</code> keys would pose interest to me. I've already tried to put them in a <code>"global.properties"</code>, <code>"struts-messages.properties"</code>, and <code>"ActionName_en_US.properties"</code> file and I have not seen either one of the messages that I wrote. I have <b>three <code>&lt;s:file&gt;</code> fields in a form</b> and the action to which it is submitted has the interceptors:</p>
  
  <pre><code>&lt;interceptor-ref name="fileUpload"&gt;
      &lt;param name="maximumSize"&gt;2097152&lt;/param&gt;
      &lt;param name="allowedTypes"&gt;
          image/png,image/gif,image/jpeg,image/pjpeg
      &lt;/param&gt;
  &lt;/interceptor-ref&gt;
  &lt;interceptor-ref name="secureStack"&gt;&lt;/interceptor-ref&gt;
  </code></pre>
  
  <p>The <code>secureStack</code> interceptor does not throw any errors.<BR />
  EDIT: here's the definition of it:
      </p>
  
  <pre><code>    &lt;interceptor name="authenticationInterceptor"
          class="client.interceptors.Authentication" /&gt;
  
      &lt;interceptor-stack name="secureStack"&gt;
          &lt;interceptor-ref name="authenticationInterceptor" /&gt;
          &lt;interceptor-ref name="defaultStack" /&gt;
      &lt;/interceptor-stack&gt;
  
  &lt;/interceptors&gt;
  </code></pre>
  
  <p>I used <a href="https://stackoverflow.com/questions/1445791/struts-2-file-upload-interceptor-configuration-problems">THIS ANSWER</a> and it seems to work but when one file exceeds the maximum size, the error message appears on the other two fields also.</p>