PROTECTED]Subject: Parsing
multipart form data
Hi,
I'm trying to figure out the best way to parse
multi-part form data. I have a page which submits to a certain URI which
invokes an action. This action needs to parse the multi-part form data
(in the request object I believe) and then pass
-
From: Geoff Howard [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, January 20, 2003 7:27 PM
Subject: RE: Parsing multipart form data
Hi Geoff,
When I cast directly to FilePartArray I get a ClassCastException, which
I
thought was due to Cocoon not receiving the init-param correctly
That explains alot. Thanks for reporting back.
Geoff
-Original Message-
From: Collin VanDyck [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 21, 2003 5:14 PM
To: [EMAIL PROTECTED]
Subject: Re: Parsing multipart form data
Geoff
Ok, everything is working now. Strangely, I had
Hi,
I'm trying to figure out the best way to parse
multi-part form data. I have a page which submits to a certain URI which
invokes an action. This action needs to parse the multi-part form data (in
the request object I believe) and then pass that data off to my j2ee backend for
of what you need to do on the
backend.
Geoff Howard
-Original Message-
From: Collin VanDyck [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 20, 2003 3:36 PM
To: [EMAIL PROTECTED]
Subject: Parsing multipart form data
Hi,
I'm trying to figure out the best way to parse multi-part form data
with it, but I would like to keep it in memory if at all possible.
Thanks very much for your help!
Collin
- Original Message -
From: Geoff Howard [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, January 20, 2003 4:01 PM
Subject: RE: Parsing multipart form data
Have you seen
Here is my web.xml file. (It's long, so an apology in advance). I hope this
helps, and I really do appreciate everyone's help in this list.
I commented out overwrite-uploads and set the autosave-uploads to false, but
I still get a FilePartFile instead of a FilePartArray.
thanks,
Collin
?xml
sounds to me like something is wrong with your web.xml (more below):
Thanks Geoff
Well, yes, I actually started going thru the mail lists and found
your link
below. It is helpful, but I cannot get some of the features to work. I DO
have the FilePartFile bit working, though I would not like
ah, that brings to mind another idea - send a snippet of your action that
deals with getting the FilePart...
Geoff
-Original Message-
From: Collin VanDyck [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 20, 2003 5:02 PM
To: [EMAIL PROTECTED]
Subject: Re: Parsing multipart form data
]
Sent: Monday, January 20, 2003 5:32 PM
Subject: RE: Parsing multipart form data
ah, that brings to mind another idea - send a snippet of your action that
deals with getting the FilePart...
Geoff
-Original Message-
From: Collin VanDyck [mailto:[EMAIL PROTECTED]]
Sent: Monday
application.
Does that sound reasonable?
Or would it be looking for the web.xml in the cocoon[something].jar?
Collin
- Original Message -
From: Geoff Howard [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, January 20, 2003 5:32 PM
Subject: RE: Parsing multipart form data
sounds
: Collin VanDyck [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 20, 2003 5:22 PM
To: [EMAIL PROTECTED]
Subject: Re: Parsing multipart form data
Hi Geoff.
Here's really the only thing I'm doing with it right now.
FilePartFile fpf = (FilePartFile)request.get(file_content);
log.info(received
:37 PM
Subject: RE: Parsing multipart form data
There you go - you've cast to FilePartFile - cast to FilePart (or directly
to FilePartArray) and you're set. We need another example at the Wiki
(assuming that's where you got the concept from?) showing FilePartArray.
Should have thought
- Original Message -
From: Geoff Howard [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, January 20, 2003 5:37 PM
Subject: RE: Parsing multipart form data
There you go - you've cast to FilePartFile - cast to FilePart
(or directly
to FilePartArray) and you're set. We need
14 matches
Mail list logo