struts-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jo...@apache.org
Subject struts git commit: WW-4505 Add plugin to support bean validation
Date Mon, 05 Oct 2015 18:10:00 GMT
Repository: struts
Updated Branches:
  refs/heads/master 9638d7ada -> 50ae859da


WW-4505 Add plugin to support bean validation

- Remove pre configured interceptor stack to use bean validation with rest plugin because
this causes conflicts when rest plugin is not used


Project: http://git-wip-us.apache.org/repos/asf/struts/repo
Commit: http://git-wip-us.apache.org/repos/asf/struts/commit/50ae859d
Tree: http://git-wip-us.apache.org/repos/asf/struts/tree/50ae859d
Diff: http://git-wip-us.apache.org/repos/asf/struts/diff/50ae859d

Branch: refs/heads/master
Commit: 50ae859dab626b6b8c446158f07a4b8e3f889828
Parents: 9638d7a
Author: Johannes Geppert <jogep@apache.org>
Authored: Mon Oct 5 20:09:55 2015 +0200
Committer: Johannes Geppert <jogep@apache.org>
Committed: Mon Oct 5 20:09:55 2015 +0200

----------------------------------------------------------------------
 .../src/main/resources/struts-plugin.xml        | 40 --------------------
 1 file changed, 40 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/struts/blob/50ae859d/plugins/bean-validation/src/main/resources/struts-plugin.xml
----------------------------------------------------------------------
diff --git a/plugins/bean-validation/src/main/resources/struts-plugin.xml b/plugins/bean-validation/src/main/resources/struts-plugin.xml
index 523082f..5bb1bf0 100644
--- a/plugins/bean-validation/src/main/resources/struts-plugin.xml
+++ b/plugins/bean-validation/src/main/resources/struts-plugin.xml
@@ -73,44 +73,4 @@
 
     </package>
 
-    <package name="struts-rest-bean-validation" extends="rest-default">
-        <interceptors>
-            <interceptor name="beanValidation" class="org.apache.struts.beanvalidation.validation.interceptor.BeanValidationInterceptor"/>
-
-            <interceptor-stack name="restBeanValidationStack">
-                <interceptor-ref name="exception"/>
-                <interceptor-ref name="alias"/>
-                <interceptor-ref name="servletConfig"/>
-                <interceptor-ref name="messages">
-                    <param name="operationMode">AUTOMATIC</param>
-                </interceptor-ref>
-                <interceptor-ref name="prepare"/>
-                <interceptor-ref name="i18n"/>
-                <interceptor-ref name="chain"/>
-                <interceptor-ref name="debugging"/>
-                <interceptor-ref name="profiling"/>
-                <interceptor-ref name="actionMappingParams"/>
-                <interceptor-ref name="scopedModelDriven"/>
-                <interceptor-ref name="modelDriven">
-                    <param name="refreshModelBeforeResult">true</param>
-                </interceptor-ref>
-                <interceptor-ref name="fileUpload"/>
-                <interceptor-ref name="checkbox"/>
-                <interceptor-ref name="staticParams"/>
-                <interceptor-ref name="params"/>
-                <interceptor-ref name="rest" />
-                <interceptor-ref name="conversionError"/>
-                <interceptor-ref name="beanValidation">
-                    <param name="excludeMethods">input,back,cancel,browse,index,show,edit,editNew</param>
-                </interceptor-ref>
-                <interceptor-ref name="restWorkflow">
-                    <param name="excludeMethods">input,back,cancel,browse,index,show,edit,editNew</param>
-                </interceptor-ref>
-            </interceptor-stack>
-
-        </interceptors>
-
-        <default-interceptor-ref name="beanValidationDefaultStack"/>
-
-    </package>
 </struts>


Mime
View raw message