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:   Problem with the ByteArrayOutputStream ...
Date:   2003-11-27 03:07:07
From:   anonymous2
Response to: Caching saves no data

Hello !


I am using jboss-3.2.1_tomcat-4.1.24 Bundle ...


I have exactly the same problem ...
The ByteArrayOutputStream is still empty after the :
chain.doFilter(req, wrappedResponse);


If i try :
System.out.println("CacheFilter : BAOS Size = " + baos.size());


I get : BAOS size = 0 ...


So :
FileOutputStream fos = new FileOutputStream(file);
fos.write(baos.toByteArray());


is only creating an empty cache ...


I don't know where I missed something, so if you have a clue, tell me please ^_^


Thomas.
(taimonetti@kourosivo.com)


1 to 1 of 1
  1. 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