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
was getting uploaded in Unix server. But not working in windows > > platform. > > Any changes is required from application or os enviroment. > > > > > > -- > > View this message in context: > > http://www.nabble.com/File-upload-in-Struts-2-tp25272389p25272389.

Re: File upload in Struts 2

2009-09-03 Thread Greg Lindholm
n or os enviroment. > > > -- > View this message in context: > http://www.nabble.com/File-upload-in-Struts-2-tp25272389p25272389.html > Sent from the Struts - User mailing list archive at Nabble.com. > > > -

File upload in Struts 2

2009-09-03 Thread Johnson nickel
uired from application or os enviroment. -- View this message in context: http://www.nabble.com/File-upload-in-Struts-2-tp25272389p25272389.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-

Re: Huge File upload in struts 2

2009-06-05 Thread Greg Lindholm
ent, offset, > partBuffer.length); > offset += partBuffer.length; > } > > return content; > } > > > > -- > View this message in context: > http://www.nabble.com/Huge-File-upload-in-struts-2-tp23870472p23881060.html > Sent from

Re: Huge File upload in struts 2

2009-06-04 Thread Johnson nickel
int offset = 0; for (byte[] partBuffer : parts) { System.arraycopy(partBuffer, 0, content, offset, partBuffer.length); offset += partBuffer.length; } return content; } -- View this message in context: http://www.nabble.com/Huge-File

Re: Huge File upload in struts 2

2009-06-04 Thread Dave Newton
Martin Gainty wrote: if your OS and container supports sendfile you may want to enable sendfile for static files Isn't that for sending data to the client? IIRC they were talking about uploads. Dave - To unsubscribe, e-mai

RE: Huge File upload in struts 2

2009-06-04 Thread Martin Gainty
esponsabilité pour le contenu fourni. > Date: Thu, 4 Jun 2009 15:05:28 -0400 > Subject: Re: Huge File upload in struts 2 > From: greg.lindh...@gmail.com > To: user@struts.apache.org > > I'm not having any problem with 20mb files using Struts 2.1.6 and the > standard

Re: Huge File upload in struts 2

2009-06-04 Thread Greg Lindholm
ileuploader first > > receives all the data, then writes the entire temporary file, then it's > > read again entirely into memory, then written back to your > > database/filesystem. There's no other built-in appro

Huge File upload in struts 2

2009-06-04 Thread Johnson nickel
gt; > > ----- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > > Quoted from: http://www.nabble.com/Struts-2-File-upload-to-store-the-filedata-tp14168069p14169822.html -- View this message in context: http://www.nabble.com/Huge-File-upload-in-struts-2-tp23870472p23870472.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org

Re: Just another question on File Upload in Struts 2 ...

2007-10-17 Thread Giovanni Azua
hi, Already managed to resolve this issue. Using the default struts.multipart.parser=jakarta had to download the following two jars: - apache commons io 1.3.2 - apache commons fileupload 1.2 then it works fine. Seems there are different ways depending on the Struts release ... not good. T

Just another question on File Upload in Struts 2 ...

2007-10-16 Thread Giovanni Azua
hi all, Unlike the other post I am using Struts 2.0.9 that seems to have a slightly different setup for File Upload. My struts.properties contains the relevant default settings: ### Parser to handle HTTP POST requests, encoded using the MIME-type multipart/form-data struts.multipart.parser=j