views:

65

answers:

2

We want to integrate a prepost rutine in our webserver (tomcat). A filter that will capture the post before sent to the user and add a line of code in the html before sent to the user. We are looking for tutorial or any help on this.

+1  A: 

Not 100% sure I understand the question, but it sounds like you may be looking for servlet filters:

http://java.sun.com/products/servlet/Filters.html

Willie Wheeler
A: 

If you want a filter that adds lines of code to the HTML before sending to the user, you should look at SiteMesh. This is a great tool for decorating HTML.

Edwin