title: add custom filter class in applicationcontext.xml
body: <p>my application is using spring applicationContext.xml. i have a custom filter class ( CustomFilter implements Filter) that i want to use in my application . Is the proper way to do this is to create a <code>&lt;bean...</code> registration inside applicationContext.xml ? or simple just put inside web.xml ? i want to put inside applicationContext.xml. but i do not know how to specify "path" that will trigger this filter. example <code>myapp/testcustomfilter</code> will trigger this filter. </p>