Filter TemplatesResin 3.0
Resin 3.0

Features
Installation
Configuration
Web Applications
IOC/AOP
Resources
JSP
Quercus
Servlets and Filters
Databases
Admin (JMX)
CMP
EJB
Amber
EJB 3.0
Security
XML and XSLT
XTP
JMS
Performance
Protocols
Third-party
Troubleshooting/FAQ

Servlets
Servlet Lib
run-at
Filters
Filter Lib
Tutorials
FAQ

Hello World
Bean-Init
Sub-Bean-Init
Filter Templates
Sub-Bean-Init
Tutorials
FAQ

Find this tutorial in: /usr/local/resin/webapps/resin-doc/servlet/tutorial/filter-templates
Try the Tutorial

This tutorial provides a good source for cut-and-paste development of your own Filters. The filter implementations are not meant to do anything useful, but you can use them as a basis for development.

Files in this tutorial

WEB-INF/classes/example/filters/ExampleResponseHeadersFilter.java A filter class that sets response headers
WEB-INF/classes/example/filters/ExampleRequestFilter.java A filter class that wraps the request
WEB-INF/classes/example/filters/ExampleResponseFilter.java A filter class that wraps the response
WEB-INF/web.xml Configuring the use of a filter in web.xml
index.jsp A jsp that show's the result of using example.filters.ExampleResponseHeadersFilter

Try the Tutorial


Sub-Bean-Init
Tutorials
FAQ
Copyright © 1998-2006 Caucho Technology, Inc. All rights reserved.
Resin® is a registered trademark, and HardCoretm and Quercustm are trademarks of Caucho Technology, Inc.