This is an automated email from the ASF dual-hosted git repository.

lukaszlenart pushed a commit to branch fix/use-base-package
in repository https://gitbox.apache.org/repos/asf/struts-examples.git

commit 1cfd5e8786541290262656e4d124ee232bd5dc5f
Author: Lukasz Lenart <lukaszlen...@apache.org>
AuthorDate: Mon Jan 1 14:34:43 2024 +0100

    Simplifies scanning to the base package
---
 annotations/src/main/webapp/WEB-INF/web.xml | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)

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>
 

Reply via email to