struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Laurie Harper <lau...@holoweb.net>
Subject Re: FileUploadInterceptor problem
Date Tue, 08 May 2007 16:40:32 GMT
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: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Mime
View raw message