web.xml (example)

By adding the SelfDiagnoseServlet to your web application deployment descriptor, diagnostic tasks can be run from a Web browser. The results are presented by an HTML page.

Add the servlet

					 
<!-- SelfDiagnose - Servlet -->
<servlet>
	<servlet-name>SelfDiagnoseServlet</servlet-name>
	<display-name>SelfDiagnose</display-name>
	<servlet-class>
	  com.philemonworks.selfdiagnose.SelfDiagnoseServlet
	</servlet-class>
</servlet> 	  
      
				

Add the mapping

					 	  
<!-- SelfDiagnose - Mapping -->	  	  
<servlet-mapping>
	<servlet-name>SelfDiagnoseServlet</servlet-name>
	<url-pattern>/selfdiagnose/*</url-pattern>
</servlet-mapping>