| 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 !
|
||
Showing messages 1 through 5 of 5.
-
Problem solved ^_^
2003-11-27 03:30:41 anonymous2 [View]
-
Problem solved ^_^
2003-12-02 15:26:36 anonymous2 [View]
I am glad your solution worked. However I must have another issue as I don't even have the GZIPFiler enabled. I have taken everything out of the web.xml except the cache filter and still no joy. -
Problem solved
2005-01-07 04:48:16 mcr [View]
This also worked with Tomcat 5, but without
requiring the clumsy empty file include:
<% out.flush(); %>



OK, problem solved ...
In fact in the file web.xml :
<filter-mapping>
<filter-name>CacheFilter</filter-name>
<url-pattern>*.jsp</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>GZIPFilter</filter-name>
<url-pattern>*.jsp</url-pattern>
</filter-mapping>
You need to declare your CacheFilter filter-mapping before your GZIPFilter filter-mapping ...
And then everything is ok :)
Thanks Jayson for your filters,
Thomas.