Please post questions about using Struts to the Struts Users list only.
The Struts Dev list is for discussing the development and enhancement of
Struts itself.
http://struts.apache.org/mail.html
L.
Michał Letyński wrote:
Hi.
I want to set a maximumSize parameter to FileUploadInterceptor.
In the example, code looks like this:
<interceptor-ref name="fileUpload">
<param name="maximumSize">12345</param>
</interceptor-ref>
FileUploadInterceptor is in the default-stack. My struts.xml config:
<interceptor-stack name="generalStack">
<interceptor-ref name="interceptor1"/>
<interceptor-ref name="interceptor2"/>
<interceptor-ref name="defaultStack"/>
</interceptor-stack>
How to set the param to the fileupload interceptor ? I tried to
overwrite this itrerceptor:
<interceptor name="fileUpload"
class="org.apache.struts2.interceptor.FileUploadInterceptor">
<param name="maximumSize">12345</param>
</interceptor-stack>
But didnt work.
I tried to inject this param to default-stack:
<interceptor-ref name="defaultStack">
<param name="fileUpload.maximumSize">1234</param>
</interceptor-ref>
And tried to re-define default-stack to my-stack without fileupload
inteceptor - other problem occurs with servletConfig interceptor.
Any ideas ?
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]