• Post Reply Bookmark Topic Watch Topic
  • New Topic

compression filter

 
souza cds
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've coded the filter like Head First Servlets and JSP does, but it's doesn't works, doesn't shows exception.

The http response has the header Content-Encoding:zip, but has no response.



How could I find out what's wrong ?



I can post the codes if it helps.


thanks lot.


 
Ankit Garg
Sheriff
Posts: 9597
36
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
souza cds wrote:I can post the codes if it helps.

Yes please. Also is the application working fine if you disable the filter?? Maybe there is problem somewhere else in your configuration or servlet. If the application is working without the filter, then the problem is surely in the filter...
 
souza cds
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI.

I found the error. before the call to finish of GZIPOutputStream, it must be called flush() of printWriter object that came from responseWrapper.


the book Head First Servlets and JSP, doesn't has any mention about it, but it's allright now.


thanks lot by your help.

 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!