struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Pratt <thechrispr...@gmail.com>
Subject Re: File upload in Struts 2
Date Thu, 03 Sep 2009 15:53:45 GMT
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 <wesw@wantii.com> wrote:

> On Thu, Sep 3, 2009 at 11:42 AM, Chris Pratt<thechrispratt@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.lindholm@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-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message