Merge pull request #308 from apache/fix/use-base-package
Simplifies scanning to the base package
diff --git a/annotations/src/main/webapp/WEB-INF/web.xml b/annotations/src/main/webapp/WEB-INF/web.xml
index 035cc56..0d3472c 100644
--- a/annotations/src/main/webapp/WEB-INF/web.xml
+++ b/annotations/src/main/webapp/WEB-INF/web.xml
@@ -11,14 +11,10 @@
<param-name>struts.devMode</param-name>
<param-value>true</param-value>
</init-param>
- <!-- Log4j is using *Action suffix as well, so narrow scanning just to a given package -->
+ <!-- Scans only a given package -->
<init-param>
- <param-name>struts.convention.action.packages</param-name>
- <param-value>example.actions</param-value>
- </init-param>
- <init-param>
- <param-name>struts.convention.package.locators.disable</param-name>
- <param-value>true</param-value>
+ <param-name>struts.convention.package.locators.basePackage</param-name>
+ <param-value>example</param-value>
</init-param>
</filter>