Re: full path name on file upload+MultipartIterator question

2002-04-15 Thread andexor
to the server? (I see only a getFileName() on FormFile) 2) I see a lot of emails floating around on the common MultipartIterator error (javax.servlet.ServletException: MultipartIterator: no multipart request data sent..) when one calls two back to back actions, where only the first

full path name on file upload+MultipartIterator question

2002-04-10 Thread C D
Hey Guys, 1) Is it true that, for security reasons, the full path of a file that a client types in the html:file element during a file upload, is never available to the server? (I see only a getFileName() on FormFile) 2) I see a lot of emails floating around on the common MultipartIterator

MultipartIterator

2002-02-28 Thread Mark Woon
Can anyone (Ted?) confirm or deny if MultipartIterator is working properly in Struts 1.0.2? I've seen reports in the archive that it's broken in 1.0.1, but the changelog for 1.0.2 has not noted that this has been fixed. I'm not getting the NPE that the reports were complaining about, but am

Re: MultipartIterator

2002-02-28 Thread Mark Woon
Mark Woon wrote: but am getting ServletExceptions instead (Problem while reading request: The maximum length of -1 bytes has been exceeded) eventhough I have maxLength set to 10240 on html:file. Oops. Just realized maxlength refers to characters entered into input field and has nothing to

Re: Simple example of MultipartIterator() use

2002-01-20 Thread Ted Husted
in the direction of a simple example of using MultipartIterator(), I am not having much luck getting it to work. I always get an error when I try and create a instance of this class using MultipartIterator iterator = new MultipartIterator(request); -- Cheers Tony

Re: Error - MultipartIterator: no multipart request data sent

2002-01-20 Thread Ted Husted
the attributes in request. I had put my attributes in session instead of request. Anyway, Thanks a lot. Regards Nuray -Original Message- From: mikael.eriksson [mailto:[EMAIL PROTECTED]] Sent: Montag, 2. Juli 2001 00:18 To: struts-user Subject: Re: Error - MultipartIterator: no multipart

Re: Error - MultipartIterator: no multipart request data sent

2002-01-16 Thread Antony Stace
PROTECTED]] Sent: Montag, 2. Juli 2001 00:18 To: struts-user Subject: Re: Error - MultipartIterator: no multipart request data sent Hello I noticed the same problem when moving to 1.0. It seems that the requesthandler notices that the request is a multi-part and tries to find the multi-part data

Simple example of MultipartIterator() use

2002-01-15 Thread Tony
Hi Can someone please point me in the direction of a simple example of using MultipartIterator(), I am not having much luck getting it to work. I always get an error when I try and create a instance of this class using MultipartIterator iterator = new MultipartIterator(request); -- Cheers

Problem with MultipartIterator class

2002-01-14 Thread Tony
Hi I have a problem using the MultipartIterator class. I have a html page with html:form action=/upload focus=theFile1 enctype=multipart/form-data file name1 INPUT TYPE=FILE NAME=theFile1 BR file name2 INPUT TYPE=FILE NAME=theFile2 BR html:submit property=submit value=Submit/ /html:form

RE: MultipartIterator error when forwarding mutlipart form post to a second Action?

2001-11-11 Thread Gavin Terrill
I have started to do a Web Application in struts and the first decision i need to make is How to Implement Security for my application? searched the struts mail archive and looks like extending the ActionServlet process is a good solution though some suggest modifying the ActionServlet and

MultipartIterator: invalid multipart request II

2001-09-18 Thread Wiechert, Holger
(I've sent this already yesterday, but I think it didn't make it, so I post it again) Hi, I just found out that I have this once discussed problem regarding the forward with multipart/form-data. I wanted to do something like having a general upload action that can be triggered from other

MultipartIterator: invalid multipart request

2001-09-17 Thread Holger Wiechert
Hi, I just found out that I have this once discussed problem regarding the forward with multipart/form-data. I wanted to do something like having a general upload action that can be triggered from other actions. After handling the upload, the control shall be forwarded to somewhere else. The

RE: Re: Error - MultipartIterator: no multipart request data sent

2001-07-02 Thread nuray . baskal
:[EMAIL PROTECTED]] Sent: Montag, 2. Juli 2001 00:18 To: struts-user Subject: Re: Error - MultipartIterator: no multipart request data sent Hello I noticed the same problem when moving to 1.0. It seems that the requesthandler notices that the request is a multi-part and tries to find the multi

Re: Error - MultipartIterator: no multipart request data sent

2001-07-01 Thread Mikael Eriksson
the uploadAction(instance of org.apache.struts.action.Action) and afterwards forwarding the request to another page. While it is forwarding the request, it gives the following error: javax.servlet.ServletException: MultipartIterator: no multipart request data sent java.lang.Throwable

error in MultipartIterator

2001-06-12 Thread Markus Pallo
Hello, i have found an error in the method createLocalFile of MultipartIterator. If the uploaded file contains a \r\n\n sequence there will be a wrong carriage added. The sequence \r\n\n will change to \r\n\r\n. The cutCarriage flag will be remembered from the last read if readBytes will be 0

Re: ServletException: MultipartIterator

2001-05-11 Thread hunkpapa
: hunkpapa [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 08, 2001 3:33 PM To: [EMAIL PROTECTED] Subject: ServletException: MultipartIterator Hi, when I start this program this message comes: action: Error in readForm: javax.servlet.ServletException: MultipartIterator: cannot retrieve boundary

RE: ServletException: MultipartIterator

2001-05-09 Thread SCHACHTER,MICHAEL (HP-NewJersey,ex2)
: MultipartIterator Hi, when I start this program this message comes: action: Error in readForm: javax.servlet.ServletException: MultipartIterator: cannot retrieve boundary for multipart request What is the cause ? ... if(contentType!=null) { try { servlet.log(MultipartIterator

ServletException: MultipartIterator

2001-05-08 Thread hunkpapa
Hi, when I start this program this message comes: action: Error in readForm: javax.servlet.ServletException: MultipartIterator: cannot retrieve boundary for multipart request What is the cause ? ... if(contentType!=null) { try { servlet.log(MultipartIterator

MultipartIterator

2001-04-26 Thread hunkpapa
Hi i've try to use the MultipartIterator, but it doesn't work. In the JSP is: ... form action=testUpload.do enctype=multipart/form-data method=post ... In the Servlet ... MultipartIterator iterator = new MultipartIterator(request); MultipartElement element; while

RE: MultipartIterator

2001-04-26 Thread Chen, Yong
Would casting do you any good? while ((element = (MultipartElement) iterator.getNextElement()) != null) Yong Chen -Original Message- From: hunkpapa [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 26, 2001 5:17 PM To: [EMAIL PROTECTED] Subject: MultipartIterator Hi i've