Commits

Anonymous committed 07de0cf

- generic tags can now support loops
- new property and iterator generic tags
- generic tag implementation in JSP, Velocity, and FM

git-svn-id: http://svn.opensymphony.com/svn/xwork/trunk@676e221344d-f017-0410-9bd5-d282ab1896d7

Comments (0)

Files changed (3)

src/java/com/opensymphony/xwork/interceptor/DefaultWorkflowInterceptor.java

  *
  * An interceptor that does some basic validation workflow before allowing the interceptor chain to continue.
  *
- * <p/>This interceptor does nothing if the name of the method being invoked
- * is specified in the <b>excludeMethods</b> parameter. <b>excludeMethods</b>
- * accepts a comma-delimited list of method names. For example, requests to
- * <b>foo!input.action</b> and <b>foo!back.action</b> will be skipped by this
- * interceptor if you set the <b>excludeMethods</b> parameter to "input,
- * back".
+ * <p/>This interceptor does nothing if the name of the method being invoked is specified in the <b>excludeMethods</b>
+ * parameter. <b>excludeMethods</b> accepts a comma-delimited list of method names. For example, requests to
+ * <b>foo!input.action</b> and <b>foo!back.action</b> will be skipped by this interceptor if you set the
+ * <b>excludeMethods</b> parameter to "input, back".
  *
  * <p/>The order of execution in the workflow is:
  *
         return invocation.invoke();
     }
 
-    public void destroy() {}
-    public void init() {}
+    public void destroy() {
+    }
+
+    public void init() {
+    }
 }

src/java/com/opensymphony/xwork/util/OgnlValueStack.java

         }
     }
 
+    public String findString(String expr) {
+        return (String) findValue(expr, String.class);
+    }
+
     /**
      * Find a value by evaluating the given expression against the stack in the default search order.
      *

src/java/com/opensymphony/xwork/validator/ValidationInterceptor.java

 package com.opensymphony.xwork.validator;
 
 import com.opensymphony.xwork.ActionInvocation;
-import com.opensymphony.xwork.util.TextParseUtil;
 import com.opensymphony.xwork.interceptor.AroundInterceptor;
+import com.opensymphony.xwork.util.TextParseUtil;
 
-import java.util.Set;
 import java.util.Collections;
+import java.util.Set;
 
 
 /**
  * is often one of the last (or second to last) interceptors applied in a stack, as it assumes that all values have
  * already been set on the action.
  *
- * <p/>This interceptor does nothing if the name of the method being invoked
- * is specified in the <b>excludeMethods</b> parameter. <b>excludeMethods</b>
- * accepts a comma-delimited list of method names. For example, requests to
- * <b>foo!input.action</b> and <b>foo!back.action</b> will be skipped by this
- * interceptor if you set the <b>excludeMethods</b> parameter to "input,
- * back".
+ * <p/>This interceptor does nothing if the name of the method being invoked is specified in the <b>excludeMethods</b>
+ * parameter. <b>excludeMethods</b> accepts a comma-delimited list of method names. For example, requests to
+ * <b>foo!input.action</b> and <b>foo!back.action</b> will be skipped by this interceptor if you set the
+ * <b>excludeMethods</b> parameter to "input, back".
  *
  * <p/>Note that this has nothing to do with the {@link com.opensymphony.xwork.Validateable} interface and simply adds
  * error messages to the action. The workflow of the action request does not change due to this interceptor. Rather,
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.