struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mr...@apache.org
Subject svn commit: r232564 - in /struts/sandbox/trunk/ti/src/java: ./ org/apache/ti/interceptor/ org/apache/ti/processor/chain/
Date Sun, 14 Aug 2005 00:59:22 GMT
Author: mrdon
Date: Sat Aug 13 17:59:21 2005
New Revision: 232564

URL: http://svn.apache.org/viewcvs?rev=232564&view=rev
Log:
 * Fixed a few issues to get the example working again
 * Added more debugging logging

Added:
    struts/sandbox/trunk/ti/src/java/org/apache/ti/processor/chain/CreateValidatorContext.java
      - copied, changed from r232551, struts/sandbox/trunk/ti/src/java/org/apache/ti/processor/chain/CreateValidationContext.java
Removed:
    struts/sandbox/trunk/ti/src/java/org/apache/ti/processor/chain/CreateValidationContext.java
Modified:
    struts/sandbox/trunk/ti/src/java/org/apache/ti/interceptor/ControllerValidationInterceptor.java
    struts/sandbox/trunk/ti/src/java/org/apache/ti/interceptor/ControllerWorkflowInterceptor.java
    struts/sandbox/trunk/ti/src/java/ti-default.xml

Modified: struts/sandbox/trunk/ti/src/java/org/apache/ti/interceptor/ControllerValidationInterceptor.java
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/ti/src/java/org/apache/ti/interceptor/ControllerValidationInterceptor.java?rev=232564&r1=232563&r2=232564&view=diff
==============================================================================
--- struts/sandbox/trunk/ti/src/java/org/apache/ti/interceptor/ControllerValidationInterceptor.java
(original)
+++ struts/sandbox/trunk/ti/src/java/org/apache/ti/interceptor/ControllerValidationInterceptor.java
Sat Aug 13 17:59:21 2005
@@ -9,7 +9,7 @@
 import com.opensymphony.xwork.validator.*;
 import org.apache.ti.processor.ControllerActionInvocation;
 import org.apache.ti.processor.ControllerContext;
-
+import org.apache.commons.logging.*;
 
 
 /**
@@ -22,6 +22,8 @@
  */
 public class ControllerValidationInterceptor extends AroundInterceptor {
 
+    private static final Log log = LogFactory.getLog(ControllerValidationInterceptor.class);
+
     /**
      * Does nothing in this implementation.
      */
@@ -36,7 +38,7 @@
      * @throws Exception if an error occurs validating the action form.
      */
     protected void before(ActionInvocation invocation) throws Exception {
-        
+        log.debug("Validating action and/or form"); 
         ControllerActionInvocation inv = (ControllerActionInvocation)invocation;
         Object form = inv.getForm();
         Object action = inv.getAction();

Modified: struts/sandbox/trunk/ti/src/java/org/apache/ti/interceptor/ControllerWorkflowInterceptor.java
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/ti/src/java/org/apache/ti/interceptor/ControllerWorkflowInterceptor.java?rev=232564&r1=232563&r2=232564&view=diff
==============================================================================
--- struts/sandbox/trunk/ti/src/java/org/apache/ti/interceptor/ControllerWorkflowInterceptor.java
(original)
+++ struts/sandbox/trunk/ti/src/java/org/apache/ti/interceptor/ControllerWorkflowInterceptor.java
Sat Aug 13 17:59:21 2005
@@ -44,6 +44,7 @@
     }
 
     public String intercept(ActionInvocation invocation) throws Exception {
+        log.debug("Executing controller validation workflow");
         ControllerActionInvocation inv = (ControllerActionInvocation)invocation;
         Object action = invocation.getAction();
         

Copied: struts/sandbox/trunk/ti/src/java/org/apache/ti/processor/chain/CreateValidatorContext.java
(from r232551, struts/sandbox/trunk/ti/src/java/org/apache/ti/processor/chain/CreateValidationContext.java)
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/ti/src/java/org/apache/ti/processor/chain/CreateValidatorContext.java?p2=struts/sandbox/trunk/ti/src/java/org/apache/ti/processor/chain/CreateValidatorContext.java&p1=struts/sandbox/trunk/ti/src/java/org/apache/ti/processor/chain/CreateValidationContext.java&r1=232551&r2=232564&rev=232564&view=diff
==============================================================================
--- struts/sandbox/trunk/ti/src/java/org/apache/ti/processor/chain/CreateValidationContext.java
(original)
+++ struts/sandbox/trunk/ti/src/java/org/apache/ti/processor/chain/CreateValidatorContext.java
Sat Aug 13 17:59:21 2005
@@ -1,5 +1,5 @@
 /*
- * $Id: CreateValidationContext.java 230578 2005-08-06 20:21:45Z mrdon $
+ * $Id: CreateValidatorContext.java 230578 2005-08-06 20:21:45Z mrdon $
  *
  * Copyright 2005 The Apache Software Foundation.
  *
@@ -41,9 +41,9 @@
 /**
  *  Initializes XWork by replacing default factories.
  */
-public class CreateValidationContext implements Command {
+public class CreateValidatorContext implements Command {
 
-    private static final Log log = LogFactory.getLog(CreateValidationContext.class);
+    private static final Log log = LogFactory.getLog(CreateValidatorContext.class);
 
     public boolean execute(Context origctx) throws Exception {
         

Modified: struts/sandbox/trunk/ti/src/java/ti-default.xml
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/ti/src/java/ti-default.xml?rev=232564&r1=232563&r2=232564&view=diff
==============================================================================
--- struts/sandbox/trunk/ti/src/java/ti-default.xml (original)
+++ struts/sandbox/trunk/ti/src/java/ti-default.xml Sat Aug 13 17:59:21 2005
@@ -25,10 +25,10 @@
             <interceptor name="component" class="com.opensymphony.xwork.interceptor.component.ComponentInterceptor"/>
             <interceptor name="token" class="com.opensymphony.webwork.interceptor.TokenInterceptor"/>
             <interceptor name="token-session" class="com.opensymphony.webwork.interceptor.TokenSessionStoreInterceptor"/>
-            <interceptor name="validation" class="org.apache.ti.interceptor.ControllerValidationInterceptor"
/>
-            <interceptor name="controllerValidation" class="com.opensymphony.xwork.validator.ValidationInterceptor"/>
+            <interceptor name="controllerValidation" class="org.apache.ti.interceptor.ControllerValidationInterceptor"
/>
+            <interceptor name="validation" class="com.opensymphony.xwork.validator.ValidationInterceptor"/>
             <interceptor name="workflow" class="com.opensymphony.xwork.interceptor.DefaultWorkflowInterceptor"/>
-            <interceptor name="controllerWorkflow" class="com.opensymphony.xwork.interceptor.ControllerWorkflowInterceptor"/>
+            <interceptor name="controllerWorkflow" class="org.apache.ti.interceptor.ControllerWorkflowInterceptor"/>
             
             <interceptor name="servlet-config" class="com.opensymphony.webwork.interceptor.ServletConfigInterceptor"/>
             <interceptor name="prepare" class="com.opensymphony.xwork.interceptor.PrepareInterceptor"/>



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Mime
View raw message