Re: File Upload Failure in Struts 7.0.3 Migration - UploadedFilesAware Implementation Issue

2025-05-13 Thread Lukasz Lenart
sob., 10 maj 2025 o 07:09 Jesus Moreno napisał(a): > 2025-05-09 01:00:25 WARN File:79 - Struts has detected a file upload UI tag > (s:file) being used without a form set to method 'POST' > (Despite being > correctly declared) This can be related to cached JSP files, please remove them from the c

Re: File Upload Browse Button

2015-07-09 Thread Christoph Nenning
the Tag creates an html tag: From: "Dhandapani, Rajeswaran" > To: "user@struts.apache.org" , > Date: 09.07.2015 12:01 > Subject: File Upload Browse Button > > Hi, > > Could you please help me to apply custom CSS for the Struts file tag > 'browse' button? > > Thanks & Regards, > Rajeswaran D

Re: File Upload error making request parameters empty

2015-02-16 Thread Lukasz Lenart
2015-02-17 7:16 GMT+01:00 Arpan : > Moreover here the error message is hard coded in the java file. It may not > be acceptable for many companies. Please register a ticket in JIRA Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ -

Re: File Upload error making request parameters empty

2015-02-16 Thread Arpan
Moreover here the error message is hard coded in the java file. It may not be acceptable for many companies. On Mon, Feb 16, 2015 at 6:34 PM, Lukasz Lenart wrote: > 2015-02-16 13:56 GMT+01:00 Christoph Nenning < > christoph.nenn...@lex-com.net>: > >> > >> Thanks a Lot. Upgrading the struts2 vers

Re: File Upload error making request parameters empty

2015-02-16 Thread Lukasz Lenart
2015-02-16 13:56 GMT+01:00 Christoph Nenning : >> >> Thanks a Lot. Upgrading the struts2 version to 2.3.20 and using the >> alternative libraries, solved the problem. >> But additionally while using the alternate library , I needed to declare >> bellow constant >> >> >> Is it necessary? >> > > > I

Re: File Upload error making request parameters empty

2015-02-16 Thread Christoph Nenning
> > Thanks a Lot. Upgrading the struts2 version to 2.3.20 and using the > alternative libraries, solved the problem. > But additionally while using the alternate library , I needed to declare > bellow constant > > > Is it necessary? > It seems that has been forgotten. So yes, currently it is

Re: File Upload error making request parameters empty

2015-02-15 Thread Arpan
Thanks a Lot. Upgrading the struts2 version to 2.3.20 and using the alternative libraries, solved the problem. But additionally while using the alternate library , I needed to declare bellow constant Is it necessary? On Fri, Jan 9, 2015 at 6:49 PM, Christoph Nenning < christoph.nenn...@lex-com.n

Re: File Upload error making request parameters empty

2015-01-09 Thread Christoph Nenning
> > HI All, > > > > We need to upload files. > > Hence I am using defaultStack Interceptor, which uses file upload > > interceptor. > > If I select a large file to upload and fileupload interceptor displays > > error message on the same page. I have few hidden fields, whose values are > > pre popu

Re: File Upload error making request parameters empty

2015-01-09 Thread Lukasz Lenart
2015-01-09 12:27 GMT+01:00 Arpan : > HI All, > > We need to upload files. > Hence I am using defaultStack Interceptor, which uses file upload > interceptor. > If I select a large file to upload and fileupload interceptor displays > error message on the same page. I have few hidden fields, whose val

Re: File Upload error making request parameters empty

2015-01-09 Thread Christoph Nenning
> HI All, > > We need to upload files. > Hence I am using defaultStack Interceptor, which uses file upload > interceptor. > If I select a large file to upload and fileupload interceptor displays > error message on the same page. I have few hidden fields, whose values are > pre populated. But when

Re: file upload problem

2013-09-25 Thread Yaragalla Muralidhar
My problem got solved. thanks. *Thanks and Regards,* Muralidhar Yaragalla. * * On Wed, Sep 25, 2013 at 12:48 PM, Yaragalla Muralidhar < yaragallamur...@gmail.com> wrote: > I am not using struts tags in jsp page. if i dont use them will i not be > able to use struts upload interceptor. > > *Than

Re: file upload problem

2013-09-25 Thread Yaragalla Muralidhar
I am not using struts tags in jsp page. if i dont use them will i not be able to use struts upload interceptor. *Thanks and Regards,* Muralidhar Yaragalla. * * On Wed, Sep 25, 2013 at 12:43 PM, Yaragalla Muralidhar < yaragallamur...@gmail.com> wrote: > Hi i am using struts2. i am trying to uplo

Re: File Upload Issue when Max Size Reached

2011-06-21 Thread Maurizio Cucchiara
Hi Chris, looks like it's related with [1], I will take a look soon. [1] https://issues.apache.org/jira/browse/WW-3025 On 21 June 2011 20:50, CRANFORD, CHRIS wrote: > I am testing the Struts 2.2.3 built in file upload support and noticing > that if I upload a file that exceeds my configured size

RE: File Upload Issue when Max Size Reached

2011-06-21 Thread Martin Gainty
Hi Chris - did you increase struts.multipart.maxSize=12345 in struts.properties? http://www.jarvana.com/jarvana/view/org/apache/struts/struts2-core/2.2.1/struts2-core-2.2.1-javadoc.jar!/org/apache/struts2/interceptor/FileUploadInterceptor.html Bon Chance Martin Gainty _

RE: File Upload Issue

2011-02-25 Thread Martin Gainty
i just executed the File-Upload action in struts-showcase-2.2.1.1 supplying the local MITLicense file I have Fileupload sample File: Caption: after uploading MITLicense file I am displayed Fileupload sample ContentType: text/plain FileName: mitlicense.password File: C:\TOMCAT\apa

Re: File Upload Issue

2011-02-25 Thread Paweł Wielgus
Hi Vikram, looks like user was uploading file of size x but after some bytes trransfered server encountered end of file for it. Strange, i see sometimes that user cancels his upload but is not the case. Do You have the posibility to confirm what strange user is doing? Or maybe it's just corrupted f

Re: File Upload

2010-08-03 Thread Alex Rodriguez Lopez
I think this is a browser/OS specific behaviour, not related to Struts or even to HTML at all. Em 26-07-2010 13:20, RogerV escreveu: Is there a way of specifying the start directory to be used when the user hits the "browse" button? As far as I can see, the system "remembers" where it was look

Re: File upload issue with Struts 2.1.6 (uploaded file is always null in action)

2009-09-29 Thread zsundeep
Hi Sameer, I have a sample code for file upload in Struts 2.1.6 here. This worked just fine for me. http://www.nabble.com/Unable-to-upload-files-in-Struts2-with-Spring-Security-filter-td25652380.html I was getting the file as null in action because of issue mentioned here http://www.nabble.com/W

RE: File upload issue with Struts 2.1.6 (uploaded file is always null in action)

2009-09-28 Thread Martin Gainty
email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > Date: Mon, 28 Sep 2009 09:51:29 -0700 > From: cool_sameer_fo...@yahoo.com > To: user@struts.apache.org > Subject: Re: File upload issue with Struts 2.1.6

Re: File upload issue with Struts 2.1.6 (uploaded file is always null in action)

2009-09-28 Thread David Canos
try changing the browser, Chrome and Safari works bad with some content-type 2009/9/28 hisameer > > Hi Dave, > > Thanks for pointing out the typo in the code. The issue was not that. After > scratching my head off for a week the issue was in the code: > > > > image/jpeg

Re: File upload issue with Struts 2.1.6 (uploaded file is always null in action)

2009-09-28 Thread hisameer
Hi Dave, Thanks for pointing out the typo in the code. The issue was not that. After scratching my head off for a week the issue was in the code: image/jpeg,image/gif,image/png,image/bmp,image.jpg

Re: File upload issue with Struts 2.1.6 (uploaded file is always null in action)

2009-09-25 Thread Dale Newfield
hisameer wrote: Well, I dont see any typo here. image/jpg, not image.jpg And I assume the email process stripped out the 'name="allowedTypes">' and '' parts? -Dale - To unsubscribe, e-mail: user-unsubscr...@struts.apache.or

Re: File upload issue with Struts 2.1.6 (uploaded file is always null in action)

2009-09-25 Thread hisameer
Well, I dont see any typo here.I have tried almost everthing. I made sure that the name must match whatever is there in the jsp page.If you see something might be typo let me know. Only the interceptors which are defined in the action mapping I copied from the struts website. -Sameer newton.dav

Re: File upload issue with Struts 2.1.6 (uploaded file is always null in action)

2009-09-25 Thread Dave Newton
hisameer wrote: image/jpeg,image/gif,image/png,image/bmp,image.jpg Is that a typo? Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional co

Re: File upload issue with Struts 2.1.6 (uploaded file is always null in action)

2009-09-25 Thread hisameer
Hi Dale, I have added two jar files in the application these jar files are: commons-fileupload-1.2.1.jar,commons-io-1.3.2.jar.Let me know if there is a need to add additional jars. I am not getting any file name or content type so I think nothing is passed to the action class, all the values are

Re: File upload issue with Struts 2.1.6 (uploaded file is always null in action)

2009-09-25 Thread Dale Newfield
hisameer wrote: Thanks for your reply. I tried to put the method public void setUploadFile(File file) but no success, file is still null in the action. Are the other two setters (ContentType, FileName) called? Do you have the appropriate interceptor in place for this action? I believe there's a

Re: File upload issue with Struts 2.1.6 (uploaded file is always null in action)

2009-09-25 Thread hisameer
Thanks for your reply. I tried to put the method public void setUploadFile(File file) but no success, file is still null in the action. DNewfield wrote: > > hisameer wrote: >> The uploaded file is always null in my action class: > >> > > >> public void setUpload(File file) { >>

Re: File upload issue with Struts 2.1.6 (uploaded file is always null in action)

2009-09-25 Thread Dale Newfield
hisameer wrote: The uploaded file is always null in my action class: public void setUpload(File file) { this.file = file; } I believe this should be "public void setUploadFile(File file) {...}" -Dale -

Re: File upload issue with Struts 2.1.6 (uploaded file is always null in action)

2009-09-25 Thread Paweł Wielgus
Hi, have You tried running showcase app, distributed in struts apps.zip or struts all.zip, there is working example of file upload. Best greetings, Pawel Wielgus. 2009/9/25, hisameer : > > I am having trouble with uploading the file using struts 2.1.6. I have to > upload a picture(.jpg, .bmp,.jpe

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
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 wrote: > You also need to set the max

Re: File upload in Struts 2

2009-09-03 Thread Greg Lindholm
You also need to set the maximumSize in the fileUpload interceptor. Here is what I have for 20mb: 2000 On Thu, Sep 3, 2009 at 5:16 AM, Johnson nickel wrote: > > Hi all, > > I'm developing web applications using struts 2 framework. I have > upload functiona

Re: File Upload Plugin

2009-06-09 Thread Wes Wannemacher
I opted to go with application/json because of this - http://www.ietf.org/rfc/rfc4627.txt it is accepted by the IANA. Anyhow, that serialization, and deserialization in the unit test is only there until the JSON result type gets officially brought into core. -Wes On Tue, Jun 9, 2009 at 12:09 P

RE: File Upload Plugin

2009-06-09 Thread Martin Gainty
ruby folks seem to favour a content-type of "text/x-json" over "application/json" http://www.ruby-forum.com/topic/94728 (prevailing argument with text is you can read it) wikipedia seems to lean to automatically associating application/json as JSON http://en.wikipedia.org/wiki/JSON#Data_types.2C

RE: File Upload in Mozilla

2009-06-02 Thread Jon Pearson
You're not the only one annoyed by this, but it's a security fix. Here's someone else's opinion on it: http://codangaems.blogspot.com/2008/06/firefox-3s-file-upload-box.html And the security vulnerability description: http://secunia.com/advisories/20442/ Sorry to say, you can't do what you want t

RE: File upload (jupload)--how to disable struts2' fileupload interceptor?

2009-05-18 Thread Martin Gainty
accepter aucune responsabilité pour le contenu fourni. > Date: Mon, 18 May 2009 14:15:59 -0700 > From: struts...@yahoo.ca > Subject: Re: File upload (jupload)--how to disable struts2' fileupload > interceptor? > To: user@struts.apache.org > > > >what would be ni

RE: File upload (jupload)--how to disable struts2' fileupload interceptor?

2009-05-18 Thread Kawczynski, David
ruts/xhtml/** HTH, -dave -Original Message- From: jesse crossley [mailto:jesse.cross...@gmail.com] Sent: Monday, May 18, 2009 4:38 PM To: user@struts.apache.org Subject: Re: File upload (jupload)--how to disable struts2' fileupload interceptor? you were right, Andy, i finally saf

Re: File upload (jupload)--how to disable struts2' fileupload interceptor?

2009-05-18 Thread Struts Two
wrote: > From: jesse crossley > Subject: Re: File upload (jupload)--how to disable struts2' fileupload > interceptor? > To: user@struts.apache.org > Received: Monday, May 18, 2009, 8:38 PM > > you were right, Andy, > i finally safely changed the struts2 filter mappi

Re: File upload (jupload)--how to disable struts2' fileupload interceptor?

2009-05-18 Thread jesse crossley
you were right, Andy, i finally safely changed the struts2 filter mappings from "/*" to "*.action" and today i've had great success merging redback struts2 with my existing webapp. i hit upon this when googling led me to another post elsewhere that was questioning how to run struts1 alongside str

Re: File upload (jupload)--how to disable struts2' fileupload interceptor?

2009-05-17 Thread Dave Newton
Andy Sykes wrote: I can't see anywhere in the documentation (I've only had a quick skim of it) that says not mapping the Struts dispatcher to /* can be dangerous.. the only example I can see is if you're using Struts interceptors/actions for webapp security - in which case hitting a servlet di

Re: File upload (jupload)--how to disable struts2' fileupload interceptor?

2009-05-16 Thread Andy Sykes
I can't see anywhere in the documentation (I've only had a quick skim of it) that says not mapping the Struts dispatcher to /* can be dangerous.. the only example I can see is if you're using Struts interceptors/actions for webapp security - in which case hitting a servlet directly might me

Re: File upload (jupload)--how to disable struts2' fileupload interceptor?

2009-05-16 Thread jesse crossley
i have a similar problem, in that i need to disable the struts2 file interceptor as well. i have a pre-existing webapp that already does FileUpload from html to servlets, but now that i've introduced struts2 into my application, file uploads and, in fact, any form set to use the multipart mime

Re: file upload

2009-04-29 Thread Burton Rhodes
I believe that question has been asked... and answered... Google is your friend. http://www.mail-archive.com/user@struts.apache.org/msg86775.html On Wed, Apr 29, 2009 at 8:40 AM, PEGASUS84 wrote: > > thanks. > but i've now a new problem: when i upload my file i received this message > "the req

Re: file upload

2009-04-29 Thread PEGASUS84
thanks. but i've now a new problem: when i upload my file i received this message "the request was rejected because its size (3571443) exceeds the configured maximum (2097152)" now i set in the interceptor-ref name file upload this param: 10485760 for 10MB but it

[OT] Re: file upload

2009-04-29 Thread Dave Newton
dusty wrote: In case you have not guessed, asking someone to just "give me code" is not the best policy on any forum/mailing list. You can either a) use Google to find someone who has posted code b) Learn to do it yourself. Either way its not really a Struts related question. All that sai

Re: file upload

2009-04-28 Thread dusty
In case you have not guessed, asking someone to just "give me code" is not the best policy on any forum/mailing list. You can either a) use Google to find someone who has posted code b) Learn to do it yourself. Either way its not really a Struts related question. All that said, try this al

Re: file upload

2009-04-28 Thread Burton Rhodes
I think the File class in the Java API would be a good place to start. Just a guess though. On 4/28/09, PEGASUS84 wrote: > > > excuse me > has some one the code to save the upload file in a specific directory? > -- > View this message in context: > http://www.nabble.com/file-upload-tp23282289p232

Re: file upload

2009-04-28 Thread Dave Newton
PEGASUS84 wrote: has some one the code to save the upload file in a specific directory? Copy the file to the directory you want. Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mai

Re: file upload

2009-04-28 Thread PEGASUS84
excuse me has some one the code to save the upload file in a specific directory? -- View this message in context: http://www.nabble.com/file-upload-tp23282289p23286968.html Sent from the Struts - User mailing list archive at Nabble.com.

Re: file upload

2009-04-28 Thread Dave Newton
PEGASUS84 wrote: thanks now thw action works but please send me a right code to make the uploadfile in a specify directory of the server because the code wich i try doesn't work Copy the file to the directory you want. Dave --

Re: file upload

2009-04-28 Thread PEGASUS84
thanks now thw action works but please send me a right code to make the uploadfile in a specify directory of the server because the code wich i try doesn't work -- View this message in context: http://www.nabble.com/file-upload-tp23282289p23282922.html Sent from the Struts - User mailing list a

Re: file upload

2009-04-28 Thread Nils-Helge Garli Hegvik
Sorry, my copy & paste mistake. That file is of course in the core. Take a look at this: http://struts.apache.org/2.1.6/docs/file-upload.html Nils-H On Tue, Apr 28, 2009 at 7:37 PM, PEGASUS84 wrote: > > no where is ths file > > Nils-Helge Garli wrote: >> >> Do you have a jar with the >> org.apa

Re: file upload

2009-04-28 Thread Dave Newton
PEGASUS84 wrote: no where is ths file S2 file uploading requires commons-io and commons-fileupload (by default). Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@st

Re: file upload

2009-04-28 Thread PEGASUS84
no where is ths file Nils-Helge Garli wrote: > > Do you have a jar with the > org.apache.struts2.dispatcher.multipart.MultiPartRequest class > anywhere in your classpath? > > Nils-H > > On Tue, Apr 28, 2009 at 7:25 PM, PEGASUS84 wrote: >> >> please helm me >> i must write a code for uploading

Re: file upload

2009-04-28 Thread Nils-Helge Garli Hegvik
Do you have a jar with the org.apache.struts2.dispatcher.multipart.MultiPartRequest class anywhere in your classpath? Nils-H On Tue, Apr 28, 2009 at 7:25 PM, PEGASUS84 wrote: > > please helm me > i must write a code for uploading file in a directory of the server. > i just try some example but i

Re: File upload, validation and Preparable

2009-03-20 Thread Dave Newton
Greg Lindholm wrote: Same is true for both "paramsPrepareParams" stack and "defaultStack", the fileUpload is after the prepare interceptor (sorry, I didn't make it clear I was talking about paramsPrepareParams). Meh, my thinking was broken when I posted that anyway; I wasn't thinking about th

Re: File upload, validation and Preparable

2009-03-20 Thread Greg Lindholm
newton.dave wrote: > > Greg Lindholm wrote: >> I've discovered that in the standard interceptor stack "fileUpload" >> is after "prepare" interceptor. This means that the upload File, >> ContentType, and FileName setters have not been called before >> prepare() method runs. Is there a good reas

Re: File upload, validation and Preparable

2009-03-19 Thread Dave Newton
Greg Lindholm wrote: I've discovered that in the standard interceptor stack "fileUpload" is after "prepare" interceptor. This means that the upload File, ContentType, and FileName setters have not been called before prepare() method runs. Is there a good reason for this? It seems like fileUploa

RE: File upload, validation and Preparable

2009-03-19 Thread Kawczynski, David
I'm pretty sure you can't prepopulate input tags whose type=file. This is html4 and has nothing to do with struts. -Original Message- From: Greg Lindholm [mailto:glindh...@yahoo.com] Sent: Wednesday, March 18, 2009 4:17 PM To: user@struts.apache.org Subject: Re: File upload,

Re: File upload, validation and Preparable

2009-03-18 Thread Greg Lindholm
BTW That's Struts 2.1.6 and Tomcat 5.5. Greg Lindholm wrote: > > Got a couple questions about file uploading. > > I've discovered that in the standard interceptor stack "fileUpload" is > after "prepare" interceptor. This means that the upload File, ContentType, > and FileName setters have not

RE: file upload file location lost on validation failure

2009-01-06 Thread Derrick Koes
iling List Subject: Re: file upload file location lost on validation failure Derrick Koes wrote: > There is a value attribute on the file tag from which you can preset the > value according to docs. > > http://struts.apache.org/2.0.14/docs/file.html > > It seems like the value

Re: file upload file location lost on validation failure

2009-01-06 Thread Dave Newton
Derrick Koes wrote: There is a value attribute on the file tag from which you can preset the value according to docs. http://struts.apache.org/2.0.14/docs/file.html It seems like the value could be "updated" from the user input, if the input data is available. File input values cannot be prel

RE: file upload file location lost on validation failure

2009-01-06 Thread Derrick Koes
ave Newton [mailto:newton.d...@yahoo.com] Sent: Tuesday, January 06, 2009 12:29 PM To: Struts Users Mailing List Subject: Re: file upload file location lost on validation failure Derrick Koes wrote: > Understood. However, if the value used to populate the field is on the > value stack, t

Re: file upload file location lost on validation failure

2009-01-06 Thread Dave Newton
Derrick Koes wrote: Understood. However, if the value used to populate the field is on the value stack, the input will be populated with the value on validation failure, except in this case it seems as the data necessary to repopulate is not available. I think we're talking past each other--fi

RE: file upload file location lost on validation failure

2009-01-06 Thread Derrick Koes
[mailto:newton.d...@yahoo.com] Sent: Tuesday, January 06, 2009 11:54 AM To: Struts Users Mailing List Subject: Re: file upload file location lost on validation failure Derrick Koes wrote: > Using the demo app (struts2-showcase-2.0.14/fileupload) and entering an > empty file, for example, will cor

Re: file upload file location lost on validation failure

2009-01-06 Thread Dave Newton
Derrick Koes wrote: Using the demo app (struts2-showcase-2.0.14/fileupload) and entering an empty file, for example, will correctly cause validation to fail. However, the file location disappears from the input. Is this as designed? Do you mean in the file input field? If so, that's normal bro

Re: File Upload into database

2008-10-21 Thread Narayana S
te: > >> Have you set enctype on the form element? >> >> Like this: >> > >> ?? >> >> >> -Original Message- >> From: Narayana S [mailto:[EMAIL PROTECTED] >> Sent: 21. oktober 2008 12:31 >> To: Struts Users Mailing List >&

Re: File Upload into database

2008-10-21 Thread Narayana S
21. oktober 2008 12:31 > To: Struts Users Mailing List > Subject: Re: File Upload into database > > Hi Thanks for your reply, > >but when i submit my form it is not setting value for the upload > properties. this is how my code is ... > -- in jsp > >

RE: File Upload into database

2008-10-21 Thread Ketil Holden
Have you set enctype on the form element? Like this: mailto:[EMAIL PROTECTED] Sent: 21. oktober 2008 12:31 To: Struts Users Mailing List Subject: Re: File Upload into database Hi Thanks for your reply, but when i submit my form it is not setting value for the upload properties. this

Re: File Upload into database

2008-10-21 Thread Narayana S
Hi Thanks for your reply, but when i submit my form it is not setting value for the upload properties. this is how my code is ... -- in jsp -- in action private String uploadContentType; private String uploadFileName; private File upload; and getter setters for these properties. i am

Re: File Upload into database

2008-10-20 Thread ManiKanta G
http://struts.apache.org/2.x/docs/how-do-we-upload-files.html have some info to start. ManiKanta

Re: File Upload into database

2008-10-20 Thread Mead Lai
There is Example in the "show-case" app, which is contain with the struts Full Releases package. simplely, U add into Action: private String uploadContentType; private String uploadFileName; private File upload; and use Tag in the jsp Page. U can get file just call upload field. On Tu

Re: File upload issue

2008-05-14 Thread Laurie Harper
Zoran Avtarovski wrote: Further digging found that file uploads work fine with all browsers except Safari Mac. Safari windows is fine as is Opera, IE and the Mozilla Browsers. Does anybody know a good debugging tool for Safari? Nope, but there are a number of command-line tools that can give y

Re: File upload issue

2008-05-14 Thread Zoran Avtarovski
Further digging found that file uploads work fine with all browsers except Safari Mac. Safari windows is fine as is Opera, IE and the Mozilla Browsers. Does anybody know a good debugging tool for Safari? Z.

Re: File upload issue

2008-05-14 Thread Zoran Avtarovski
Agh. Sorry I had to get that out. Thanks for the reply Laurie. You assumed right ­ no ajax and the error ws thrown on the redirect. I took your advice and tried using firebug to get a look at the headers and to my surprise, it works. So I tried IE, no problems again. It¹s only Safari that caus

Re: File upload issue

2008-05-13 Thread Laurie Harper
Zoran Avtarovski wrote: I¹m getting an error after uploading a file. Which manifests itself in my redirect action. I¹m using a simple post redirect pattern, where the file upload action redirects to a separate fileList action. After successfully uploading the file the browser is redirected to t

Re: File Upload Size

2008-03-20 Thread Lukasz Lenart
> No it doesn't Maybe that's the problem, FileUploadInterceptor check if action implements it and add error messages. If you implement it, remember to add result name=input. Regards -- Lukasz http://www.linkedin.com/in/lukaszlenart -

Re: File Upload Size

2008-03-20 Thread Richard Sayre
No it doesn't On Wed, Mar 19, 2008 at 2:14 PM, Lukasz Lenart <[EMAIL PROTECTED]> wrote: > Does your action implements ValidationAware interface? > > > > > > Regards > -- > Lukasz > > http://www.linkedin.com/in/lukaszlenart > > --

Re: File Upload Size

2008-03-19 Thread Lukasz Lenart
Does your action implements ValidationAware interface? Regards -- Lukasz http://www.linkedin.com/in/lukaszlenart - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: File Upload Size

2008-03-19 Thread Lukasz Lenart
Hi, You can subclass FileUploadInterceptor and override acceptFile(File file, String contentType, String inputName, ValidationAware validation, Locale locale) method Regards -- Lukasz http://www.linkedin.com/in/lukaszlenart -

Re: File Upload Size

2008-03-19 Thread Richard Sayre
The reason I am asking this is bacuase when I upload a file over 15MB I get "no result mapped for INPUT" exception in my error log. When I do map a result for input the app hangs. I looked at the file upload in the struts showcase and it returns an error message when the file you upload is too big

Re: File Upload problem

2008-03-19 Thread David Durham, Jr.
On Wed, Mar 19, 2008 at 5:19 AM, udaykumar <[EMAIL PROTECTED]> wrote: > > I am using struts and have an upload.jsp and its associated UploadForm.java > and UploadAction.java. The jsp's form has an enctype=multipart/form-data and > contains an html:file field to upload a file as well as a bunch o

Re: File upload issues when maxFileSize is exceeded.

2008-02-08 Thread James Sanders
Thanks Laurie! That's a pretty good idea, and quite possibly what we'll do. The problem with it is that the file is sent along with other form parameters, and if I remember correctly, the Content-Length header is the full length of the body of the post, which would include all the text for those pa

Re: File upload issues when maxFileSize is exceeded.

2008-02-08 Thread Laurie Harper
Adam Gordon wrote: We're using Struts 1.2.9 and the problem we're seeing is that if a user tries to upload a file that does not exist or upload a file that exceeds the maxFileSize attribute the FormFile object on the ActionForm is null and so we cannot distinguish between the two. We thought

Re: File upload issues when maxFileSize is exceeded.

2008-02-08 Thread James Sanders
Thanks for your response Martin, but as Dave pointed out, we do not have that interface available as we are using 1.2.9. Does anybody know at what point the framework begins to actually save a FormFile and if there is any way to hook into that and check the length before that happens? On Feb 7, 20

Re: File upload issues when maxFileSize is exceeded.

2008-02-07 Thread Dave Newton
--- Martin Gainty <[EMAIL PROTECTED]> wrote: > take a look at implementing FileUploadAction > http://jsourcery.com/api/apache/struts/2.0.6/org/apache/struts2/showcase/fil > eupload/FileUploadAction.html "Adam Gordon" <[EMAIL PROTECTED]> wrote: > > We're using Struts 1.2.9 Dave

Re: File upload issues when maxFileSize is exceeded.

2008-02-07 Thread Martin Gainty
Adam- take a look at implementing FileUploadAction http://jsourcery.com/api/apache/struts/2.0.6/org/apache/struts2/showcase/fil eupload/FileUploadAction.html M-- - Original Message - From: "Adam Gordon" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Thursday, February 07, 2008

Re: File Upload

2008-01-24 Thread Pablo Vázquez Blázquez
If I add this script to the end of Plugins.jspx, firebug says: "dojo is not defined". How is it possible? function fixLinks() { var wid = dojo.widget.byId("removePluginAnchor"); alert(wid); } dojo.addOnLoad(fixLinks);

Re: File Upload

I always try first in Firefox, you know... And yes, I´m debugging with firebug (what would I do without this tool??). If I begin my "Plugins.jspx" with "jsp:root" tag (with no syntax problem, as it works fine when is loaded by "ShowPlugins.do" action) the load function from the javascript give

Re: File Upload

Sorry Pablo, I'm not sure about this. My suggestions are: - try it in FireFox. If it works, you know you have an IE-specific problem. If it doesn't work, there's something wrong with the code - innerHTML is known to have quirks in IE. I'd simplify the HTML result and work upwards from plai

Re: File Upload

Any idea? How can I fix the "Delete links" problem? Pablo Vázquez Blázquez escribió: Well, if I begin my Plugins.jspx with a div tag, it works (before, the begin was a jsp:root tag). But, when the response is loaded (it is the same page but with a new plugin entry), the "delete" link is bad

Re: File Upload

Well, if I begin my Plugins.jspx with a div tag, it works (before, the begin was a jsp:root tag). But, when the response is loaded (it is the same page but with a new plugin entry), the "delete" link is bad created. So, 2 questions: a) why didn´t it work with jsp:root? b) why delete links are b

Re: File Upload

Is there any problem with this mail list? I can´t send mails. Jeromy Evans escribió: I'd use a breakpoint in to inspect the content of the data variable. Is it a tree of Nodes or is it plain text/html? If the former it can be appended/inserted directly into the DOM with the respective method.

Re: File Upload

I'd use a breakpoint in to inspect the content of the data variable. Is it a tree of Nodes or is it plain text/html? If the former it can be appended/inserted directly into the DOM with the respective method. If the latter the code below would be throwing a NPE and you can use innerHTML=data.

Re: File upload using Dyna Action Form

http://wiki.apache.org/struts/StrutsFileUpload this link will help you. its just a matter of configuring the same from bean in struts-config as a dyna action from Thanks, Nuwan (http://code.google.com/p/struts2-ssl-plugin/) On Jan 21, 2008 9:55 AM, Vikash Manoranjan <[EMAIL PROTECTED]> wrote: >

Re: File Upload

Hello again, If I change: load: function(type, data, evt){ document.getElementById("mydiv").innerHTML = data.firstChild.innerHTML; for: load: function(type, data, evt){ document.getElementById("mydiv").innerHTML = 'HELLO'; it works. But I want to show the response content. Do

Re: File Upload

Thanks for your reply. I have looked the links below and I tried what it says: The form: The javascript: function sendIt(){ var bindArgs = { transport: "IframeTransport", formNode: document.getElementById("myform"), mimetype: "text/html", load: function

  1   2   3   >