Add a filter with configuration in struts.xml