Reading the servlet input stream twice

2004-06-18 Thread [EMAIL PROTECTED]
Dear All, I use Tomcat 4.1.xx I am implementing page tracking on a project. I am coming across a problem, when I want to write a copy of the parameters or contents of a POST request to the database. I have tried using HttpServletRequest.getInputStream () but this cleans out the input stream and

Re: Reading the servlet input stream twice

2004-06-18 Thread QM
On Fri, Jun 18, 2004 at 04:41:54PM -0400, [EMAIL PROTECTED] wrote: : I am implementing page tracking on a project. : I am coming across a problem, when I want to write a copy of the parameters : or contents of a POST request to the database. : [snip] : Is there anyway of getting a copy of a POST

Re: Reading the servlet input stream twice

2004-06-18 Thread Erik Earle
look at the org.apache.catalina.valve.RequestDumperValve Original Message Follows From: QM [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED],[EMAIL PROTECTED] Subject: Re: Reading the servlet input stream twice Date: Fri, 18 Jun 2004

Re: Reading the servlet input stream twice

2004-06-18 Thread Justin Ruthenbeck
The cleanest, most standards-compliant way of doing what you're asking is through the HttpServletRequestWrapper. Make sure you've duely considered QM's comments about the getParameter() methods. justin At 01:41 PM 6/18/2004, you wrote: Dear All, I use Tomcat 4.1.xx I am implementing page