Hi IJonas,
 
You are right, this is a feature not currently supported by Cactus. However, there is a todo task listed in http://jakarta.apache.org/cactus/todo.html. Have a look, I have also put some details on how we could implement it. Now, if you wish to help ... please do ! :-)
 
Thanks
-Vincent
----- Original Message -----
Sent: Monday, October 01, 2001 11:51 PM
Subject: ServletInputStream and sending multi-part stream

Hi,
 
I'm trying to simulate/test the sending of a multi-part stream of content to a servlet, as if the user had typed in some fields in a form, together with specifying a file for upload. This behaviour is often found in webmail sites for the handling of attachments.
 
Typically with a multi-part forms, the data sent is not available via request.getParameter() calls, but has to be parsed by interpreting the raw stream available through request.getInputStream(), which returns a ServletInputStream object.
 
I was hoping to find something similar to WebRequest.getOutputStream(), to mimick a multi-part form request, but couldn't find anything obvious in the Cactus APIs.
 
How do I go about achieving the above test scenario ? If possible....
 
 
Cheers,
Ijonas Kisselbach.

Reply via email to