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 <bean... 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 myapp/testcustomfilter will trigger this filter.
my application is using spring applicationContext.xml. i have a custom filter class ( CustomFilter
Share
FilterToBeanProxy class proxies request to spring managed beans. You have to define this filter in your web.xml and point targetBean parameter to your managed-bean. Also check out the FilterChainProxy to define a filter chain.