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
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
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
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
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
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
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
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
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
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
(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
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
:[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
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
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
: 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
: 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
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
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
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
20 matches
Mail list logo