Interceptor Stacks [Was: Re: File upload in Struts 2]

2009-09-03 Thread Dale Newfield
Greg Lindholm wrote: Here [1] is where I found the doc on Interceptor Parameter Overriding. [1] http://struts.apache.org/2.1.6/docs/interceptors.html#Interceptors-InterceptorParameterOverriding I'm confused. With "Method 2" is there one instantiated interceptor stack, or two? These are suppos

Re: File upload in Struts 2

2009-09-03 Thread Greg Lindholm
Here [1] is where I found the doc on Interceptor Parameter Overriding. [1] http://struts.apache.org/2.1.6/docs/interceptors.html#Interceptors-InterceptorParameterOverriding On Thu, Sep 3, 2009 at 11:53 AM, Chris Pratt wrote: > It probably should be. One of the problems I've had over and over is

Re: File upload in Struts 2

2009-09-03 Thread Chris Pratt
It probably should be. One of the problems I've had over and over is needing to supply parameters to an interceptor in the middle of the stack. The only other way is to create a mirror stack just for the one or two new parameters. Thanks for the valuable information Greg and Wes. (*Chris*) On

Re: File upload in Struts 2

2009-09-03 Thread Wes Wannemacher
On Thu, Sep 3, 2009 at 11:42 AM, Chris Pratt wrote: > Woa!  You can do that?  I didn't know you could inject parameters into a > specific interceptor by injecting them into the stack!  That's awesome.  We > need to make that more obvious in the documentation. >  (*Chris*) > > On Thu, Sep 3, 2009 at

Re: File upload in Struts 2

2009-09-03 Thread Chris Pratt
Woa! You can do that? I didn't know you could inject parameters into a specific interceptor by injecting them into the stack! That's awesome. We need to make that more obvious in the documentation. (*Chris*) On Thu, Sep 3, 2009 at 6:55 AM, Greg Lindholm wrote: > You also need to set the max

Re: File upload in Struts 2

2009-09-03 Thread Greg Lindholm
You also need to set the maximumSize in the fileUpload interceptor. Here is what I have for 20mb: 2000 On Thu, Sep 3, 2009 at 5:16 AM, Johnson nickel wrote: > > Hi all, > > I'm developing web applications using struts 2 framework. I have > upload functiona