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

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


The following commit(s) were added to refs/heads/master by this push:
     new a75418a  Update struts.xml - Timer Interceptor is DEPRECATED
     new 3db16c8  Merge pull request #302 from briansu2004/patch-2
a75418a is described below

commit a75418a2a25310235f4405542839ee9d236c795b
Author: Brian Su <briansu2...@hotmail.com>
AuthorDate: Sun Dec 24 08:25:18 2023 -0500

    Update struts.xml - Timer Interceptor is DEPRECATED
    
    Timer Interceptor is DEPRECATED
    
    Keeping it in `struts.xml` will cause exceptions.
---
 interceptors/src/main/resources/struts.xml | 2 --
 1 file changed, 2 deletions(-)

diff --git a/interceptors/src/main/resources/struts.xml 
b/interceptors/src/main/resources/struts.xml
index 8a8ad3b..3d8050d 100644
--- a/interceptors/src/main/resources/struts.xml
+++ b/interceptors/src/main/resources/struts.xml
@@ -20,10 +20,8 @@
                <result name="input">register.jsp</result>
          </action>
 
-      <!-- for logger interceptor see: 
https://struts.apache.org/core-developers/logging-interceptor.html -->
       <!-- for timer interceptor see 
https://struts.apache.org/core-developers/timer-interceptor.html -->            
  
          <action name="register" 
class="org.apache.struts.register.action.Register" method="execute">
-                       <interceptor-ref name="timer" />
                        <interceptor-ref name="logger" />
                        <interceptor-ref name="defaultStack">
                           <param name="exception.logEnabled">true</param>

Reply via email to