Re: multipart-request / file upload problem

2004-03-01 Thread Adam Hardy
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

Re: multipart-request / file upload problem

2004-03-01 Thread Martin Cooper
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

Re: multipart-request / file upload problem

2004-03-01 Thread Adam Hardy
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

multipart-request / file upload problem

2004-02-29 Thread Adam Hardy
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

Multipart request losing parameters when forwarded

2003-06-17 Thread Doug Padian
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

Loosing my parameter in the multipart request

2002-11-19 Thread Murray, Christopher
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]

Re: Loosing my parameter in the multipart request

2002-11-19 Thread Kris Schneider
(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

RE: Loosing my parameter in the multipart request

2002-11-19 Thread Andrew Hill
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

RE: Loosing my parameter in the multipart request

2002-11-19 Thread Murray, Christopher
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

RE: Loosing my parameter in the multipart request

2002-11-19 Thread Andrew Hill
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

RE: Loosing my parameter in the multipart request

2002-11-19 Thread Kris Schneider
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

RE: Loosing my parameter in the multipart request

2002-11-19 Thread Murray, Christopher
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

RE: Loosing my parameter in the multipart request

2002-11-19 Thread Andrew Hill
[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

RE: Loosing my parameter in the multipart request

2002-11-19 Thread 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

RE: Loosing my parameter in the multipart request

2002-11-19 Thread Kris Schneider
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

RE: Loosing my parameter in the multipart request

2002-11-19 Thread Andrew Hill
- 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

RE: Loosing my parameter in the multipart request

2002-11-19 Thread Kris Schneider
!). -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

RE: Loosing my parameter in the multipart request

2002-11-19 Thread Murray, Christopher
-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

Re: Loosing my parameter in the multipart request

2002-11-19 Thread Martin Cooper
(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

Loosing parameter in a multipart request

2002-11-19 Thread Murray, Christopher
(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]

RE: Loosing my parameter in the multipart request

2002-11-19 Thread Murray, Christopher
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

File upload: no multipart request data sent

2002-07-24 Thread Pete Serafin
: 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

Re: File upload: no multipart request data sent

2002-07-24 Thread Pete Serafin
. 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

RE: File upload: no multipart request data sent

2002-07-24 Thread Martin Cooper
]' 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

RE: File upload: no multipart request data sent

2002-07-24 Thread Rene Eigenheer
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

Multipart request and special characters

2002-06-03 Thread Philippe Van Der Gucht
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

Re: Disabling Struts multipart request handling (1.1b) [Bug?]

2002-04-08 Thread Vincent Aumont
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

Re: Disabling Struts multipart request handling (1.1b) [Bug?]

2002-04-08 Thread Marcelo Vanzin
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

Re: Disabling Struts multipart request handling (1.1b) [Bug?]

2002-04-08 Thread Marcelo Vanzin
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

Re: Disabling Struts multipart request handling (1.1b) [Bug?]

2002-04-08 Thread Vincent Aumont
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

Disabling Struts multipart request handling (1.1b)

2002-04-06 Thread Vincent Aumont
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

multipart request error. Problem forwarding to 2nd Action.

2002-04-01 Thread @Basebeans.com
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

Re: multipart request error. Problem forwarding to 2nd Action.

2002-04-01 Thread Slava_L
: 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

multipart request error. Problem forwarding to 2nd Action.

2002-03-11 Thread $B%"%s%H%K!<(B $B%9%F%$%9(B
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

Re: Error - MultipartIterator: no multipart request data sent

2002-01-20 Thread Ted Husted
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

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

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: Multipart Request

2001-08-17 Thread Mikael Eriksson
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

Multipart Request

2001-08-16 Thread MacKellar, Kimberly
: 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

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

Re: Concepts in working with multipart request

2001-06-11 Thread Jonathan Asbell
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

Concepts in working with multipart request

2001-06-08 Thread Jonathan
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

RE: invalid multipart request in beta 3 Controller Wrapping Request

2001-06-07 Thread Peter Doyle
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

RE: SOLVED invalid multipart request in beta 3 Controller Wrapping Request

2001-06-07 Thread Peter Doyle
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

RE: SOLVED invalid multipart request in beta 3 Controller Wrapping Request

2001-06-07 Thread Graeme Miller
: 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

RE: SOLVED invalid multipart request in beta 3 Controller Wrapping Request

2001-06-07 Thread Graeme Miller
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

invalid multipart request in beta 3

2001-06-06 Thread Peter Doyle
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

Re: invalid multipart request in beta 3

2001-06-06 Thread Biswas Amalendu
] 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

RE: invalid multipart request in beta 3

2001-06-06 Thread Peter Doyle
:[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

RE: invalid multipart request in beta 3

2001-06-06 Thread Graeme Miller
: 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

RE: invalid multipart request in beta 3

2001-06-06 Thread Graeme Miller
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