Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Response Wrappers and JSPs

 
Victor Dolirio
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ranchers,

I�ve build a Filter to handle a response wrapper to compress data mapped for every resources in my application (<utl-pattern>/*</url-pattern> and it works well when I access a servlet and jsps that received a forward by another servlet, but when I try access jsps directly nothing is sended to client and no exceptions are throwed across the request process, while debbuging I notice the getWriter method of my wrapper class was called but the writer method of my response class didn�t. Can some one figure out what is happening? I�m using tomcat.

thanks all.
[ September 12, 2008: Message edited by: Victor Dolirio ]
 
Victor Dolirio
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have anybody any ideia?
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34671
367
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Victor,
Please allow at least 24 hours for replies. Many people are in different timezones and go on JavaRanch once a day.

Can you show the piece of code where it gets stuck?
 
Victor Dolirio
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The doFilter�s Filter method:


The Compress Response Wrapper:


and the decorator compress output:


thanks all.
[ September 16, 2008: Message edited by: Victor Dolirio ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic