I'm going to put this another way: what's the secret with file upload
requests? I can't see my file parameter in the request parameters when I
submit the form with the multipart-request.
Adam
On 02/29/2004 07:05 PM Adam Hardy wrote:
I use the Commons multipart request handler stuff to set up
Adam Hardy [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I'm going to put this another way: what's the secret with file upload
requests? I can't see my file parameter in the request parameters when I
submit the form with the multipart-request.
Ah, if I told you that, it wouldn't
to put this another way: what's the secret with file upload
requests? I can't see my file parameter in the request parameters when I
submit the form with the multipart-request.
Ah, if I told you that, it wouldn't be a secret any more, now would it? ;-)
The biggest difference with multipart
I use the Commons multipart request handler stuff to set up a
DynaActionForm properly for my file upload so:
form-bean name=linklibImportForm
type=org.apache.struts.validator.DynaValidatorActionForm
form-property name=bookmarksFile
type
I can't seem to figure this one out. My action class is getting a request coming from
a form that has the enctype of multipart/form-data. From looking in the JavaDocs, I
see that what ends up in the Action method is a MultipartRequestWrapper which wraps
the HttpServletRequest. The Javadocs
that a Multipart request is a different request object.
Have you got any suggestions ?
Is this possible ?
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
(Unknown Source)
Guessing that a Multipart request is a different request object.
Have you got any suggestions ?
Is this possible ?
--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]
--
Kris Schneider mailto:[EMAIL PROTECTED
The multipart request is indeed a different request object.
(It uses an org.apache.struts.upload.MultipartRequestWrapper)
Why?
Because getParameter() doesnt normally work on a multipart request! (Sun
give some excuses about not parsing it for you cos multipart submissions
arent a 'standard
To: Struts Users Mailing List
Subject: Re: Loosing my parameter in the multipart request
If the request content type isn't application/x-www-form-urlencoded, then
the
getParameter family of methods won't work. However, I'm guessing that Struts
will handle this for you if you make userAction
Did you have any luck with the (ugly) workaround I suggested?
-Original Message-
From: Murray, Christopher [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 19, 2002 21:41
To: 'Struts Users Mailing List'
Subject: RE: Loosing my parameter in the multipart request
It would also appear
commented it out the validate
worked fine.
-Original Message-
From: Kris Schneider [mailto:[EMAIL PROTECTED]]
Sent: 19 November 2002 13:39
To: Struts Users Mailing List
Subject: Re: Loosing my parameter in the multipart request
If the request content type isn't application/x-www-form
what if you wanted to retrieve a request parameter for a branch in your
reset method ?
-Original Message-
From: Kris Schneider [mailto:[EMAIL PROTECTED]]
Sent: 19 November 2002 15:55
To: Struts Users Mailing List
Subject: RE: Loosing my parameter in the multipart request
Sure
[mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 19, 2002 23:50
To: 'Struts Users Mailing List'
Subject: RE: Loosing my parameter in the multipart request
what if you wanted to retrieve a request parameter for a branch in your
reset method ?
-Original Message-
From: Kris Schneider
: Loosing my parameter in the multipart request
Sure, but that's just the normal flow of form processing:
reset - populate - validate
Quoting Murray, Christopher [EMAIL PROTECTED]:
It would also appear that the request parameters are only revealed once
the
ActionForm has been populated
for a branch in your
reset method ?
-Original Message-
From: Kris Schneider [mailto:[EMAIL PROTECTED]]
Sent: 19 November 2002 15:55
To: Struts Users Mailing List
Subject: RE: Loosing my parameter in the multipart request
Sure, but that's just the normal flow of form
-
From: Kris Schneider [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 20, 2002 00:56
To: Struts Users Mailing List
Subject: RE: Loosing my parameter in the multipart request
Just to clarify, your specific situation violates #3. The content type of
your
request is multipart/form-data, right
!).
-Original Message-
From: Kris Schneider [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 20, 2002 00:56
To: Struts Users Mailing List
Subject: RE: Loosing my parameter in the multipart request
Just to clarify, your specific situation violates #3. The content type of
your
request
-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]]
Sent: 19 November 2002 16:52
To: Struts Users Mailing List
Subject: RE: Loosing my parameter in the multipart request
Im rather in agreement. It really should parse the request parameters before
reset is called so
(mapping.getParameter()) =
null
request = org.apache.struts.upload.MultipartRequestWrapper@799ca4
java.lang.NullPointerException
at com...web.action.UploadActionForm.reset(Unknown Source)
Guessing that a Multipart request is a different request object.
Have you got any suggestions
(Unknown Source)
Guessing that a Multipart request is a different request object.
Have you got any suggestions ?
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Thanks Andrew that spells it out nicely. Going for manual reset.
-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]]
Sent: 19 November 2002 13:51
To: Struts Users Mailing List
Subject: RE: Loosing my parameter in the multipart request
The multipart request is indeed
: no multipart request
data sent at org.apache.struts.upload.MultipartIterator.parseRequest
(MultipartIterator.java:342)
When I forward to a JSP, I dont get this error. I am not doing any
validation on this form, but I cant seem locate where the error is
occuring. My form does have the following header
. However, when I try to
forward to the same action ( or another action ) after the processing
is done, I get the following error:
javax.servlet.ServletException: MultipartIterator: no multipart request
data sent at org.apache.struts.upload.MultipartIterator.parseRequest
(MultipartIterator.java
]'
Subject: File upload: no multipart request data sent
I have a jsp used to do a simple file upload. I am retrieving and
processing the file without any problems. However, when I try to
forward to the same action ( or another action ) after the processing
is done, I get the following error
try redirect=true in your forward
-Original Message-
From: Pete Serafin [mailto:[EMAIL PROTECTED]]
Sent: Mittwoch, 24. Juli 2002 22:28
To: Struts Users Mailing List
Subject: Re: File upload: no multipart request data sent
Does anyone have ANY ideas on this issue??? Im really
this:
javax.servlet.ServletException: MultipartIterator: invalid multipart request
data, doesn't start with boundary
at
org.apache.struts.upload.MultipartIterator.parseRequest(MultipartIterator.java:346)
at org.apache.struts.upload.MultipartIterator.(MultipartIterator.java:152
To answer my own question:
I need to disable the Struts multipart request handling because I want to use my
own handler that does not the Struts interface. It seems like we lost this
functionality when the multipartClass property was moved out of the ActionServlet
class.
I patched
Vincent Aumont wrote:
I need to disable the Struts multipart request handling because I want to use my
own handler that does not the Struts interface. It seems like we lost this
functionality when the multipartClass property was moved out of the ActionServlet
class.
The config
Marcelo Vanzin wrote:
The config options you had in the ActionServlet declaration have
been moved to struts-config.xml, most of them inside the container
element.
Sorry, that would be controller element.
--
[]'s
Marcelo Vanzin
Touch Tecnologia
[EMAIL PROTECTED]
Life is too
The config options you had in the ActionServlet declaration have
been moved to struts-config.xml, most of them inside the container
element.
Sorry, that would be controller element.
You're right, I can define a handler in the controller element but there is no
way to specify
Hi,
It used to be (pre-1.0.2) that setting the ActionServlet's multipartClass
property to none (in web.xml) would prevent struts from handling multipart
requests.
I had a look at the 1.1b code and at the nightly version and it seems that this
functionality has been removed, although the
Subject: multipart request error. Problem forwarding to 2nd Action.
From: Nicolas Parisé [EMAIL PROTECTED]
===
Hi folks!
I got the same problems with 2 actions with one using a a multipart request.
Anybody can help me?
Thank you
Nicolas
Hi
I am
: Tuesday, April 02, 2002 11:40 AM
Subject: multipart request error. Problem forwarding to 2nd Action.
Subject: multipart request error. Problem forwarding to 2nd Action.
From: Nicolas Parisé [EMAIL PROTECTED]
===
Hi folks!
I got the same problems with 2 actions with one using a a multipart
Hi
I am having some difficulties with a multipart request. The sequence
of actions I have is
1. Using an Action(Action1) I populate some beans and display a page. This
page
has the multipart/form-data form on it...
html:form action=/testUpload focus=theFile enctype=multipart/form
executing a couple of procedures inside 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
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
(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
error
javax.servlet.ServletException: MultipartIterator: no multipart request data
sent at
org.apache.struts.upload.MultipartIterator.parseRequest(MultipartIterator.ja
va:341) at
org.apache.struts.upload.MultipartIterator.(MultipartIterator.java:152)
Is there a way to reset something
: MultipartIterator: no multipart request data
sent at
org.apache.struts.upload.MultipartIterator.parseRequest(MultipartIterator.ja
va:341) at
org.apache.struts.upload.MultipartIterator.(MultipartIterator.java:152)
Is there a way to reset something in the request to prevent this from
happening
:[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
Thanks Mike :^)
- Original Message -
From:
SCHACHTER,MICHAEL
(HP-NewJersey,ex2)
To: '[EMAIL PROTECTED]'
Sent: Monday, June 11, 2001 10:15
PM
Subject: RE: Concepts in working with
multipart request
Jonathan,
Hello
all.
I wanted to
know if I
Hello all.
I wanted to know if I am able to use the
MultipartRequestWrapper object by itself.
That is, can I store MultipartRequestWrapper
objects in a bean.
My purpose is to temporarily storea binary
and its file name in a bean until the final form page when the user submits the
whole
the request is
Multipart but should be a regualar requestor the other way around.. Its
just confusing.
At least I'm not alone :)
Peter
-Original Message-
From: Graeme Miller [mailto:[EMAIL PROTECTED]]
Sent: 06 June 2001 23:17
To: '[EMAIL PROTECTED]'
Subject: RE: invalid multipart request
is wrapped
in a MultipartRequest, as of beta 2. Now the action you forward to does not
expect the multipart request, I think, so it causes the exception... I guess
you could change the encrypt type of the destination action... anyway
What I did was forward control to a JSP that only contains
: Peter Doyle [mailto:[EMAIL PROTECTED]]
Sent: Friday, 8 June 2001 4:58 a.m.
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: RE: SOLVED invalid multipart request in beta 3 Controller
Wrapping Request
HAHA!
Right for anyone (not many) who came across this problem here
is how
invalid multipart request in beta 3 Controller
Wrapping Request
HAHA!
Right for anyone (not many) who came across this problem here
is how to
solve it.
In the struts upload application you will see that control is
sent to a JSP
after the uploading. If you send it to another action
Hi,
I recently changed from Struts b1 to b3. (I skipped b2) I have doe working
with b1 to handle uploading, based on the upload application that came with
struts. Since changed to b3 I get the following error:
javax.servlet.ServletException: MultipartIterator: invalid multipart request
data
]
Subject: invalid multipart request in beta 3
Date: Wed, 6 Jun 2001 15:44:58 +0100
Hi,
I recently changed from Struts b1 to b3. (I skipped b2) I have doe
working
with b1 to handle uploading, based on the upload application that came with
struts. Since changed to b3 I get the following error
:[EMAIL PROTECTED]]
Sent: 06 June 2001 16:42
To: [EMAIL PROTECTED]
Subject: Re: invalid multipart request in beta 3
Hi Peter,
I have a file upload program and I am using b3 and everything is working
just fine. Would you make sure that you set the enctype to
multipart/form-data on your form tag
: Peter Doyle [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 7 June 2001 2:45 a.m.
To: [EMAIL PROTECTED]
Subject: invalid multipart request in beta 3
Hi,
I recently changed from Struts b1 to b3. (I skipped b2) I
have doe working
with b1 to handle uploading, based on the upload application
Message-
From: Peter Doyle [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 7 June 2001 4:29 a.m.
To: [EMAIL PROTECTED]
Subject: RE: invalid multipart request in beta 3
The form tag uses enctype multipart/form-data. Uploading is not the
problem. The file uploads okay. When I forward to the next
53 matches
Mail list logo