Servlets and Filters

From Resin 3.0

(Difference between revisions)
Jump to: navigation, search
(One intermediate revision by one user not shown)
Line 1: Line 1:
[[Category:Servlet Library]] [[Category:Filter Library]]
[[Category:Servlet Library]] [[Category:Filter Library]]
Line 9: Line 10:
* [[FastCGIServlet]] - handles backend fast cgi
* [[FastCGIServlet]] - handles backend fast cgi
* [[HttpProxyServlet]] - proxies HTTP requests to a backend
* [[HttpProxyServlet]] - proxies HTTP requests to a backend
* [[SSIServlet]] - provides basic server-side include functionality
== Filter Library ==
== Filter Library ==

Latest revision as of 12:05, 2 December 2011

40px-Edit-clear.png This article requires cleanup and may refer to a legacy version of Resin.

Please visit for the most up-to-date documentation.

Corresponding Resin documentation is


[edit] Servlet Library

[edit] Filter Library

[edit] Using a servlet as the welcome page

  1. Create a dummy index.htm file.
  2. Add index.htm to the <welcome-file-list> element of your web.xml.
  3. Create a <servlet-mapping>element for your welcome servlet that maps to /index.htm.
  4. Deploy the application, fire up your favourite browser, and enjoy!

The following is an example web.xml file:





[edit] Gzip filter

This is some addendum to what is available at

  • the correct class name is com.caucho.filters.GzipFilter as used in the example configuration, not the javadoc reference on the line afterward
  • this filter is only available in the Pro version.

Also the reference to the GzipFilter on has a bad link for the documentation and should be linked to the link above.

Personal tools