Tim Olson wrote:
in some parts of our system, we use cocoon's uploaded file handling and it's nice.
but for this one page we need to run some code /before/ the uploaded file is handled. this code basically tells another server that a file's coming in and to put the user on hold. we then make another call when the file upload is completed.
how do we run code before cocoon has started pulling in the upload?

It's impossible to run code before the request reads in the file, because Cocoon does this for you while it sets up the Request environment object which must be finished before starting pipeline assembly and processing.


Ok, technically possible if
1) you use a servlet filter or chain before Cocoon servlet.
or
2) you subclass the Multipart handler (and possibly CocoonServlet and Cocoon, etc.) to account for a delayed processing of the multipart data.


Now, I don't quite understand why this other server needs to know what's happening before this server acts. Can you explain that more? Are you working with gigantic files or something?

Geoff


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to