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 <thechrispr...@gmail.com>wrote:

> 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 Thu, Sep 3, 2009 at 8:49 AM, Wes Wannemacher <w...@wantii.com> wrote:
>
> > On Thu, Sep 3, 2009 at 11:42 AM, Chris Pratt<thechrispr...@gmail.com>
> > 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 6:55 AM, Greg Lindholm <greg.lindh...@gmail.com
> > >wrote:
> > >
> > >> You also need to set the maximumSize in the fileUpload interceptor.
> > >>
> > >> Here is what I have for 20mb:
> > >>        <interceptor-ref name="paramsPrepareParamsStack">
> > >>          <param name="fileUpload.maximumSize ">20000000</param>
> > >>        </interceptor-ref>
> > >>
> >
> >
> > Chris,
> >
> > I can't remember when we added that, but there is a caveat... I just
> > can't remember what the caveat is... I think it only works on certain
> > interceptors, or interceptors that inherit from a certain base
> > interceptor class. I have to look it up, or you can try to read
> > through the code. All that I remember is that it's not a
> > general-purpose thing.
> >
> > -Wes
> >
> > --
> > Wes Wannemacher
> >
> > Head Engineer, WanTii, Inc.
> > Need Training? Struts, Spring, Maven, Tomcat...
> > Ask me for a quote!
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> > For additional commands, e-mail: user-h...@struts.apache.org
> >
> >
>

Reply via email to