Title: Access to HttpServletRequest.getInputStream() in Cactus

 
  Folks,
   I'm trying to unit test a Servlet which reads XML messages via an HTTP
POST
  and sends back an XML message in the response. The Servlet reads in the
   XML via the HttpServletRequest.getInputStream(). Is there anyway to
"push"
   data into this InputStream from Cactus ( perhaps setting a String buffer
???)

   Also, I don't quite understand why Cactus needs to be run inside a
WebServer like
   Tomcat. Why can't one create concrete representations of
HttpServletRequest and
  HttpServletResponse, and use that ??? Am I missing something ???

 thanks in advance ...
   --- jerome


Reply via email to