ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Two Servlet Filters Every Web Application Should Have
Subject:   Caching saves no data
Date:   2003-11-25 21:21:41
From:   anonymous2
I cannot seem to get the caching solution to work.


I believe that the ByteArrayOutputStream is not getting any data when


CacheResponseWrapper wrappedResponse = new CacheResponseWrapper(response, baos);
chain.doFilter(req, wrappedResponse);


is executed. The file created contains no data :(. Tracing the program flow shows that both the CacheResponseWrapper and CacheResponseStream are created.


I am using tomcat 4.1.27, jdk1.4.1, I have followed all the instructions, any help much appreciated!


1 to 1 of 1
  1. Problem with the ByteArrayOutputStream ...
    2003-11-27 03:07:07  anonymous2 [View]

    • Problem solved ^_^
      2003-11-27 03:30:41  anonymous2 [View]

      • Problem solved ^_^
        2003-12-02 15:26:36  anonymous2 [View]

        • Problem solved
          2005-01-07 04:48:16  mcr [View]

        • Problem solved ^_^
          2005-01-06 12:54:28  mcr [View]

          • Problem solved ^_^
            2005-01-06 12:55:29  mcr [View]

1 to 1 of 1