Servlets and Filters - Documentation topics on: servlets and filters,web-ext.xml,.

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>