On 10.03.2008 15:53, Tobias Rübner wrote:

Now I integrate the file upload as a cocoon action with <map:act> in the sitemap pipeline. Now I can handle the uploaded file.
Is this the prefered way, when I do not want to use flowscript?

There are probably not many choices left :)

I am not sure, because this way uses the apache avalon framework, which as far as I know, should be removed in cocoon 2.2.

I guess even flowscript is still based on the Avalon framework. And that probably won't change in 2.2, i.e. Avalon won't be removed in 2.2. The advantage with flowscript would be that you don't tie your code to Avalon. It will only be a Cocoon-internal change in flowscript once we convert it from Avalon to some other technology.

Is there an other way to get a Part object in a servlet request?

In theory you just need to check if the request is an instance of MultipartHttpServletRequest, cast it and call the get(String) method.

I tried it with the non-cocoon-style servlet aproach, definied the servlet as bean definition in the block definition file (META-INF/cocoon/spring).

I'm not quite sure about this approach. Grek probably knows more about it. I only know that most stuff on the request is not available on such an internal servlet framework request (if that's what you have).

Joerg

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

Reply via email to