Re: multipart-request / file upload problem

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

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 multip

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 st

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

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

RE: Loosing my parameter in the multipart request

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

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 a

Loosing parameter in a multipart request

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

Re: Loosing my parameter in the multipart request

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

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 they are

RE: Loosing my parameter in the multipart request

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

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
> > 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

RE: Loosing my parameter in the multipart request

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

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

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, but

RE: Loosing my parameter in the multipart request

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

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 a

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 ma

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 'standar

Re: Loosing my parameter in the multipart request

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

Loosing my parameter in the multipart request

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

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 a

RE: File upload: no multipart request data sent

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

Re: File upload: no multipart request data sent

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

File upload: no multipart request data sent

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

Multipart request and special characters

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

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 > > 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

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 > element. Sorry, that would be element. -- []'s Marcelo Vanzin Touch Tecnologia [EMAIL PROTECTED] "Life is too short to drink che

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.

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

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 docume

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

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

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 _

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... 2. The user fills out the form and hits the submit button. The

Re: Error - MultipartIterator: no multipart request data sent

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

Re: Error - MultipartIterator: no multipart request data sent

2002-01-16 Thread Antony Stace
>-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

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 action

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 uplo

Re: Multipart Request

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

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
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

Re: Error - MultipartIterator: no multipart request data sent

2001-07-01 Thread Mikael Eriksson
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

Error - MultipartIterator: no multipart request data sent

2001-06-30 Thread nuray . baskal
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

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.  

RE: Concepts in working with multipart request

2001-06-11 Thread SCHACHTER,MICHAEL (HP-NewJersey,ex2)
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

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 store a binary and its file name in a bean until the final form page when the user submits the whole "k

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

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

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

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

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 a to

RE: invalid multipart request in beta 3 Controller Wrapping Request

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

RE: invalid multipart request in beta 3

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

RE: invalid multipart request in beta 3

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

RE: invalid multipart request in beta 3

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

Re: invalid multipart request in beta 3

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

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