This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Response Wrappers and JSPs  RSS feed

 
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
Sheriff
Posts: 36406
454
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 ]
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!