dotCMS - Open Source Content Management System, Ondemand CMS, and Professional Support

Document Search

Article Information

Since Version: 1.7
Tags: plugins
Updated: 4/23/2009 4:38:27 PM
By: Jason Tesser
Doc id: 170494
Print Page: Export to PDF

Servlets and Filters

You can add or even override dotCMS servlets and filters. To do so you add your specific filters and servlets to the web-ext.xml. The override happens by keying on the servlet-name for a servlet and the filter-name for the filters.

<servlet>
	<servlet-name>HelloWorldServlet</servlet-name>
	<servlet-class>com.dotmarketing.plugins.hello.world.HelloWorldServlet</servlet-class>
</servlet>

<servlet-mapping>
	<servlet-name>HelloWorldServlet</servlet-name>
	<url-pattern>/servlets/plugins/hello.world/hello</url-pattern>
</servlet-mapping>


Post a Comment


Add Comments

   

 
Post