wrote:
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 be a secret any more, now would it? ;-)
The big
"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 multip
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 st
I use the Commons multipart request handler stuff to set up a
DynaActionForm properly for my file upload so:
which works fine, but in some circumstances I want to manually create
this form, grab the file and save the DynaActionForm (in a filter). Like so:
ActionForm form
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
a shame that it still isn't sorted out !!
-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]]
Sent: 19 November 2002 15:43
To: Struts Users Mailing List
Subject: RE: Loosing my parameter in the multipart request
Did you have any luck with the (ugly) workaround I sugge
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 a
quot;Entering TrcCbmUploadActionForm.reset");
}
When all this executes this outputs
mapping.getParameter() = userAction
request.getParameter(mapping.getParameter()) =
null
request = org.apache.struts.upload.MultipartRequestWrapper@799ca4
java.lang.NullPointerException
at com...web.action.U
TAGE_ACTION_
> METHOD)){
>
> this.emailText = null;
> contactId = null;
> log.debug("email text has been reset.");
> }
>
> log.debug("Entering UploadActionForm.reset");
> }
>
> When all this executes this outputs
-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 they are
of
> request processing!).
>
> -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 speci
-
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
>
> Quoting "Murray, Christopher" <[EMAIL PROTECTED]>:
>
> > what if you wanted to retrieve a request parameter for a branch in your
> > reset method ?
> >
> > -Original Message-
> > From: Kris Schneider [mailto:[EMAIL PROTE
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 processing:
>
> reset -> populate -> validate
>
> Quoting "Murray, Christopher" <[EMAIL PROTECTED]&g
[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
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, but
i.e. my reset method exploded but when I 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
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 a
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 ma
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 'standar
n("request = " + request.toString());
>
> if
> (request.getParameter(mapping.getParameter()).equals(Constants.STAGE_ACTION_
> METHOD)){
>
> this.emailText = null;
> contactId = null;
> log.debug("email text has been reset.")
apping.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 ?
Is this
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 a
To: '[EMAIL PROTECTED]'
> 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
oblems. 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.Multipart
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
e get 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:
> > The config options you had in the ActionServlet declaration have
> > been moved to struts-config.xml, most of them inside the
> > element.
>
> Sorry, that would be element.
You're right, I can define a handler in the controller element but there is no
way to specify that I want
Marcelo Vanzin wrote:
> The config options you had in the ActionServlet declaration have
> been moved to struts-config.xml, most of them inside the
> element.
Sorry, that would be element.
--
[]'s
Marcelo Vanzin
Touch Tecnologia
[EMAIL PROTECTED]
"Life is too short to drink che
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.
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
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 docume
p" <@[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: 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]&
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 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...
2. The user fills out the form and hits the submit button. The
-
> >From: mikael.eriksson [mailto:[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 m
>-Original Message-
>From: mikael.eriksson [mailto:[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
(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 action
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 uplo
> UploadImageAction I get the following 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.(Multipar
: 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
on [mailto:[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
ple 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 d
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(java.lang.String
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.
f the request
is "multipart/form-data"
2) Struts goes to
populate the form, and creates a MultipartRequestHandler instance to
handle
the multipart request.
MultipartRequestHandler is an interface, the implementation can
change
at will and can be specified as an
init-param fo
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 store a binary
and its file name in a bean until the final form page when the user submits the
whole "k
]
> 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 to
> solve it.
>
> In the struts upload application you will see that control is
> sen
; From: 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 man
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 a
to
s 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
nal 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.
-
> From: 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
malendu [mailto:[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-da
: [EMAIL PROTECTED]
>To: <[EMAIL PROTECTED]>
>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 app
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
56 matches
Mail list logo