RE: file upload exception

2007-09-16 Thread Session Mwamufiya
Computer Science T: (412) 508-5455 | [EMAIL PROTECTED] -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Saturday, September 15, 2007 8:56 PM To: Struts Users Mailing List Subject: Re: file upload exception --- Session A Mwamufiya wrote: > Eureka!!! > > That

Re: file upload exception

2007-09-15 Thread Dave Newton
--- Session A Mwamufiya wrote: > Eureka!!! > > That's it, it works finally. Thanks so much!!! Just for the record, that's why I asked yesterday (Friday) if you copied it and if the file info was correct. d. - To unsubscribe,

Re: file upload exception

2007-09-15 Thread Session A Mwamufiya
Eureka!!! That's it, it works finally. Thanks so much!!! > You copy the file to a new location in the action. It removes the file > after the action method is executed. > > Session A Mwamufiya wrote: >> How do I stop the FileUploadInterceptor from firing and deleting the >> files? Is there

Re: file upload exception

2007-09-15 Thread Adam Ruggles
You copy the file to a new location in the action. It removes the file after the action method is executed. Session A Mwamufiya wrote: How do I stop the FileUploadInterceptor from firing and deleting the files? Is there a setting to put in struts.xml or web.xml? I copied verbatim what there

RE: file upload exception

2007-09-15 Thread Session A Mwamufiya
How do I stop the FileUploadInterceptor from firing and deleting the files? Is there a setting to put in struts.xml or web.xml? I copied verbatim what there is in the showcase, and it's still not working. > --- Session A Mwamufiya wrote: >> Yes the file is the right size; I tried it with differ

RE: file upload exception

2007-09-15 Thread Dave Newton
--- Session A Mwamufiya wrote: > Yes the file is the right size; I tried it with > different files to upload, and the size seems > correct. *sigh* Posting the only line of code that matters for your situation now. This is from FileUploadInterceptor, after the action invocation, and is prefaced by

RE: file upload exception

2007-09-15 Thread Session A Mwamufiya
er School of >> Business MSE (software eng.) | School of Computer Science T: (412) >> 508-5455 | [EMAIL PROTECTED] >> >> -Original Message- From: Dave Newton >> [mailto:[EMAIL PROTECTED] Sent: Friday, September 14, 2007 7:21 PM >> To: Struts User

RE: file upload exception

2007-09-15 Thread Dave Newton
al Message- > From: Dave Newton [mailto:[EMAIL PROTECTED] > Sent: Friday, September 14, 2007 7:21 PM > To: Struts Users Mailing List > Subject: Re: file upload exception > > --- Session A Mwamufiya wrote: > > I check whether the uploaded file exists (also > it'

RE: file upload exception

2007-09-15 Thread Session Mwamufiya
ECTED] -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Friday, September 14, 2007 7:21 PM To: Struts Users Mailing List Subject: Re: file upload exception --- Session A Mwamufiya wrote: > I check whether the uploaded file exists (also it's > name and size) in my get

Re: file upload exception

2007-09-14 Thread Dave Newton
--- Session A Mwamufiya wrote: > I check whether the uploaded file exists (also it's > name and size) in my getters and setters. Is it the *correct* size? Have you looked at the FileUploadInterceptor code to see how it behaves or looked at the log file to see what information it might provide? Th

Re: file upload exception

2007-09-14 Thread Session A Mwamufiya
The action context cleaner is the first filter in my web.xml. Yes, I get the temp file name. I had code to read in the data from the file, but I commented it out for now, all I want to do is be able to have the file appear on my server. I check whether the uploaded file exists (also it's name

Re: file upload exception

2007-09-14 Thread Dave Newton
I would suggest isolating the smallest example with which you cannot upload a file: I have yet to have any issues with it after adding the cleanup filter. Did you put the filter in the correct place in the web.xml? It needs to be executed before the S2 filter. My sample code is doing an Ajax subm

Re: file upload exception

2007-09-14 Thread Session A Mwamufiya
We don't get a FormFile in struts 2, it's an actual File. But mine is junk. Can someone send me the jsp, struts.xml, and action java code for a working example of file upload. I put up everything I had in this thread, and nobody found anything wrong with it; at this point, I'll have to use som

RE: file upload exception

2007-09-14 Thread Session A Mwamufiya
/issues.apache.org/struts/browse/WW-1816 > > John > > >> -Original Message- From: Dave Newton >> [mailto:[EMAIL PROTECTED] Sent: Friday, September 14, 2007 1:40 PM >> To: Struts Users Mailing List Subject: Re: file upload exception >> >&

RE: file upload exception

2007-09-14 Thread John Krueger
age- > From: Dave Newton [mailto:[EMAIL PROTECTED] > Sent: Friday, September 14, 2007 1:40 PM > To: Struts Users Mailing List > Subject: Re: file upload exception > > I'd add the action context cleanup filter; it may be > cargo-cult programming at this point but in the past &

Re: file upload exception

2007-09-14 Thread abhiram
hi!! i dont know about struts 2, but i tried uploading images to the server using Struts 1.2,and it works just fine..i dont think we get the uploaded file as it is.. wat u said is true.. we get a temp file at different locations for each web container...basically watever files are uploaded, are

Re: file upload exception

2007-09-14 Thread Session A Mwamufiya
You're right about the button, that's what gets put in the file. I'll check on how to add the action context cleanup filter. Hopefully that will clear up things. Thanks, Session > I'd add the action context cleanup filter; it may be cargo-cult > programming at this point but in the past it se

Re: file upload exception

2007-09-14 Thread Dave Newton
I'd add the action context cleanup filter; it may be cargo-cult programming at this point but in the past it seemed necessary for file uploads to work. The discussions regarding it are in the archives. Other than that, I'm not sure what else to tell you w/o seeing the code. Is the button label "Im

Re: file upload exception

2007-09-14 Thread Session A Mwamufiya
I never set a filter (not sure how to either), I just copied what the showcase example had. Here's my JSP: <%@ taglib prefix="s" uri="/struts-tags"%> SMIG Import My action has a series of getters/setters for the following: private String fileName; private String cont

Re: file upload exception

2007-09-14 Thread Dave Newton
--- Session A Mwamufiya wrote: > Do people need more information in order to answer > this thread? Please let me know. I've been stuck > for 2 days now, trying to upload a file on my > server. I've had no issues uploading files; it drops it in the temp directory and I copy it to where I really w

Re: file upload exception

2007-09-14 Thread Session A Mwamufiya
Do people need more information in order to answer this thread? Please let me know. I've been stuck for 2 days now, trying to upload a file on my server. Thanks, > I guess I'll address my question to newbies: have any of you successfully > implemented the fileUpload from the showcase? Please

Re: file upload exception

2007-09-13 Thread Session A Mwamufiya
I guess I'll address my question to newbies: have any of you successfully implemented the fileUpload from the showcase? Please let me know whether you've come across the same issue as me with the actual file not being uploaded. Any fixes? Thanks > I've attempted to get the upload to work, b

Re: file upload exception

2007-09-13 Thread Session A Mwamufiya
I've attempted to get the upload to work, but I get some inconsistencies in the getters. I get the correct filename in the filename getter, but I don't get that same filename in the file getter (it's something totally different). Here's the code for my getters: public String getUploadFileNa

Re: file upload exception

2007-09-12 Thread Session A Mwamufiya
Where is the uploaded file supposed to be found on the server once it is uploaded? I'm using Jboss. I only get a temp file that doesn't contain the content of the file I uploaded. Any ideas what could be going on? I have the details of my code in the previous threads. Thanks, Session > Th

Re: file upload exception

2007-09-12 Thread Session A Mwamufiya
Thanks for the tip, it worked to get me by the errors I was having. I'm now stuck with not getting the actual file uploaded. I put logging in the getters and setters in my java class, though the filename field is fetched correctly, the actually file is not: there's a temp file that gets created

Re: file upload exception

2007-09-12 Thread Randall Svancara
Make sure you have commons-io, commons-fileupload, and commons-collections jar files in your WEB-INF/lib directory. At least this worked for me. Thanks, On Wed, 2007-09-12 at 19:07 -0400, Session A Mwamufiya wrote: > Hi, > > I'm using struts 2.0.6, and I keep getting the following exception whe

Re: file upload exception

2007-09-12 Thread Randall Svancara
Make sure you have commons-io, commons-fileupload, and commons-collections jar files in your WEB-INF/lib directory. At least this worked for me. Thanks, On Wed, 2007-09-12 at 19:07 -0400, Session A Mwamufiya wrote: > Hi, > > I'm using struts 2.0.6, and I keep getting the following exception wh