Do you have an example on how to create a new request? I'm using org.apache.tomcat5.CoyoteRequest and org.apache.tomcat5.CoyoteRequestFacade to create the new request. Is that correct?
Frank -----Original Message----- From: Will Hartung [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 27, 2005 7:22 PM To: Tomcat Users List Subject: Re: HTTP/POST request body dump > From: "Tuan, Frank" <[EMAIL PROTECTED]> > Sent: Wednesday, April 27, 2005 6:52 PM > I tried with a Filter. However, once I called getInputStream() in the > filter, getInputStream() in the servlet returns nothing. You effectively need to create a new Request with an new InputStream pointing to the stuff you just loaded in. You can do that by loading the request into a byte buffer, and tying a ByteArrayInputStream in the new Request that you forward from your Filter. This has the downside of caching the entire request in RAM, so just be aware. Regards, Will Hartung ([EMAIL PROTECTED]) --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
