I'm working on liferay upgrade to version 6.1. Version 6.1 allows servlet filters in hook plugin. I just wanted to make sure if I'm doing things correctly.
So basically from WEB-INF/web.xml in my ext I'm moving my <filter>s definitions to WEB-INF/liferay-hook.xml in my hook plugin. Syntax for that is <servlet-filter> and <servlet-filter-mapping>.
My question is: do I also have to specify the same filters in web.xml in my hook plugin? I'm not really able to test that right now, and I don't want to move all the filters and then be wondering why it doesn't work. It compiles and builds and I can deploy it to the server, but still I would like to know if it is the right way to do it.
Thank you for help in advance.
Please sign in to flag this as inappropriate.