• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Response Wrappers and JSPs

 
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Have anybody any ideia?
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic