You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@struts.apache.org by lu...@apache.org on 2024/01/01 13:34:58 UTC

(struts-examples) branch fix/use-base-package created (now 1cfd5e8)

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

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


      at 1cfd5e8  Simplifies scanning to the base package

This branch includes the following new commits:

     new 1cfd5e8  Simplifies scanning to the base package

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(struts-examples) 01/01: Simplifies scanning to the base package

Posted by lu...@apache.org.
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 <lu...@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>