Women in Technology

Hear us Roar



Article:
  Two Servlet Filters Every Web Application Should Have
Subject:   cache filter sometimes does not deliver full content
Date:   2004-01-16 12:37:39
From:   anonymous2
hi,
i have been trying the CacheFilter on a tomcat-5 with german web pages, encoded on ISO-8859-1, and many of my pages don't get loaded fully.


(i changed the chartacter encoding of the OutputStream constructor in the sources, which allowed for a correct encoding)


the html output is truncated at seemingly arbitrary places. actually, on www.jspbook.com there seems to be a similar problem these days (15/16.01.2004). just compare the output of www.jspbook.com with www.jspbook.com/index.jsp at the end of the page...

Full Threads Oldest First

Showing messages 1 through 4 of 4.

  • cache filter sometimes does not deliver full content
    2004-01-18 22:08:06  jfalkner [View]

    Did you grab the latest code, http://www.jspbook.com/jspbook.jar? The encoding issue was mentioned before, and it was fixed.

    The cache filter shouldn't truncate HTML ouput in seemingly arbitrary pages. The example you give from www.jspbook.com was not due to the cache filter, but thanks for pointing it out. I fixed the news feed.

    Can you give a better example of the truncating problem you seem to be having?
    • cache filter sometimes does not deliver full content
      2004-06-21 01:57:13  CarstenHarry [View]

      I have the sme problem.
      I am using Apache 1.3 and Tomcat 4.1.29 with mod_jk.

      I downloaded latest jar-File.

      But nearly alle pages get truncated. Is there perhaps a problem with includes in JSP?
      • cache filter sometimes does not deliver full content
        2008-04-09 22:53:19  Shashanka Kulur [View]

        Hi,
        I am facing similar problems with one of the filters.
        I am looking for some solution for this let me know if you have resolved this problem.

        -Thanks
      • cache filter sometimes does not deliver full content
        2004-07-06 18:31:05  willdenniss [View]

        I found this to be the case too - I use struts (templates) in my jsp.

        I found just including a blank template at the bottom fixed the problem. Create a file named "bugworkaround.html", black - try importing that at the bottom of your pages.

        Worked for me...

        Will.