Re: problem uploading a text file

2009-09-04 Thread Rusty Wright
From: Bill Bohnenberger To: Struts Users Mailing List Sent: Friday, September 4, 2009 2:50:47 PM Subject: Re: problem uploading a text file Well, I am the one who is confused, for sure. I restarted eclipse and now I can upload *.txt files just fine with my original xml:

Re: problem uploading a text file

2009-09-04 Thread Tommy Pham
- Original Message > From: Bill Bohnenberger > To: Struts Users Mailing List > Sent: Friday, September 4, 2009 2:50:47 PM > Subject: Re: problem uploading a text file > > Well, I am the one who is confused, for sure. I restarted eclipse and now I > can upload *.txt

Re: problem uploading a text file

2009-09-04 Thread Bill Bohnenberger
Well, I am the one who is confused, for sure. I restarted eclipse and now I can upload *.txt files just fine with my original xml: bulkUpload.jsp Menu_init Login_init Arrg, this is not the first time Eclipse has refused to work properly in "hosted" mode until I re

Re: problem uploading a text file

2009-09-04 Thread Chris Pratt
I guess I don't understand why the interceptor would care what the content of the file is. It's only job is to inject the parameters into the action. (*Chris*) On Fri, Sep 4, 2009 at 1:24 PM, Bill Bohnenberger wrote: > Thanks, Chris, but I don't think that's the problem. I have another jsp > p

Re: problem uploading a text file

2009-09-04 Thread Bill Bohnenberger
Thanks, Chris, but I don't think that's the problem. I have another jsp page and associated action that uploads .jpg and .gif images ok with the same variables...the only difference is that I am tying to get the fileUpload interceptor to accept a *.txt file. (Sorry, I should've mentioned all this i

Re: problem uploading a text file

2009-09-04 Thread Chris Pratt
I believe the documentation is incorrect on the web. The setUpload doesn't take a File object, it takes a String that is the fully qualified path to the temporary file created by the internal upload support of struts. So what you actually need is: public void setUpload(String upload) {