File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Filters and Custom Response Wrappers (WROX Pro JSP 2nd Ed) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Filters and Custom Response Wrappers (WROX Pro JSP 2nd Ed)" Watch "Filters and Custom Response Wrappers (WROX Pro JSP 2nd Ed)" New topic
Author

Filters and Custom Response Wrappers (WROX Pro JSP 2nd Ed)

Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

I'm trying to get the demo app that is included in Chapter 15 "Pro JSP 2nd Ed" to work.

I should say at this point, if you don't have this book, and/or haven't run into this problem, nothing else in this post will make sense. I'm only throwing this out here in the hopes that someone will remember this exact problem.

All my Visual Audit filter does is output Big and stops at that.

Has anyone run across this before? I'm really scratching my head on this one... I've re-compiled with all my own debugging statements, and well.. it looks like the filter gets called a minimum of 3 times (the first time) and then once every time after the first. I also can't get it to stop saying just "Big". Even though I've compiled the filter to insert "goddamnit" it still says "big". Very curious.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Filters and Custom Response Wrappers (WROX Pro JSP 2nd Ed)