|
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.
|
- Re: ServletInputStream and sending multi-part stream Ijonas Kisselbach
- Re: ServletInputStream and sending multi-part strea... Vincent Massol
