alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

Struts example source code file (oval-test.xml)

This example Struts source code file (oval-test.xml) is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Java - Struts tags/keywords

doctype, doctype, group//xwork, group//xwork, opensymphony, opensymphony, public, public

The Struts oval-test.xml source code

<!DOCTYPE xwork PUBLIC
        "-//OpenSymphony Group//XWork 2.0//EN"
        "http://www.opensymphony.com/xwork/xwork-2.0.dtd"
        >

<xwork>
    <bean type="org.apache.struts2.oval.interceptor.OValValidationManager" class="org.apache.struts2.oval.interceptor.DummyDefaultOValValidationManager"/>
    <constant name="struts.enable.SlashesInActionNames" value="true"/>
    <constant name="struts.oval.validateJPAAnnotations" value="false" />

    <package namespace="oval" name="oval-test">
        <result-types>
            <result-type name="void" class="org.apache.struts2.oval.interceptor.VoidResult"/>
        </result-types>
        <interceptors>
            <interceptor name="ovalValidation" class="org.apache.struts2.oval.interceptor.OValValidationInterceptor"/>
        </interceptors>

        <action name="simpleFieldsJPA" class="org.apache.struts2.oval.interceptor.SimpleFieldJPAAnnotations">
            <interceptor-ref name="ovalValidation">
                <param name="validateJPAAnnotations">true
            </interceptor-ref>
            <result type="void">
        </action>
        <action name="simpleFieldsXMLChild" class="org.apache.struts2.oval.interceptor.SimpleFieldsXMLChild">
            <interceptor-ref name="ovalValidation"/>
            <result type="void">
        </action>
        <action name="validationInMethods" class="org.apache.struts2.oval.interceptor.ValidationInMethods">
            <interceptor-ref name="ovalValidation"/>
            <result type="void">
        </action>
        <action name="simpleFieldsXML/*" class="org.apache.struts2.oval.interceptor.SimpleFieldsXML">
            <interceptor-ref name="ovalValidation"/>
            <result type="void">
        </action>
        <action name="simpleFieldsXML" class="org.apache.struts2.oval.interceptor.SimpleFieldsXML">
            <interceptor-ref name="ovalValidation"/>
            <result type="void">
        </action>
        <action name="simpleFieldsXMLCaching" class="org.apache.struts2.oval.interceptor.SimpleFieldsXML">
            <interceptor-ref name="ovalValidation"/>
            <result type="void">
        </action>
        <action name="simpleField" class="org.apache.struts2.oval.interceptor.SimpleField">
            <interceptor-ref name="ovalValidation"/>
            <result type="void">
        </action>
        <action name="simpleMethod" class="org.apache.struts2.oval.interceptor.SimpleMethod">
            <interceptor-ref name="ovalValidation"/>
            <result type="void">
        </action>
        <action name="simpleFieldOGNL" class="org.apache.struts2.oval.interceptor.SimpleFieldOGNLExpression">
            <interceptor-ref name="ovalValidation"/>
            <result type="void">
        </action>
        <action name="simpleFieldI18n" class="org.apache.struts2.oval.interceptor.SimpleFieldI18n">
            <interceptor-ref name="ovalValidation"/>
            <result type="void">
        </action>
        <action name="simpleFieldI18nDefaultKey" class="org.apache.struts2.oval.interceptor.SimpleFieldI18nDefaultKey">
            <interceptor-ref name="ovalValidation"/>
            <result type="void">
        </action>
        <action name="fieldsWidthProfiles13" class="org.apache.struts2.oval.interceptor.FieldsWithProfiles" method="run1">
            <interceptor-ref name="ovalValidation"/>
            <result type="void">
        </action>
        <action name="fieldsWidthProfiles2" class="org.apache.struts2.oval.interceptor.FieldsWithProfiles" method="run2">
            <interceptor-ref name="ovalValidation"/>
            <result type="void">
        </action>
        <action name="simpleFieldNoValidate" class="org.apache.struts2.oval.interceptor.SimpleField">
            <interceptor-ref name="ovalValidation">
                <param name="alwaysInvokeValidate">false
            </interceptor-ref>
            <result type="void">
        </action>
        <action name="simpleFieldNoProgrammatic" class="org.apache.struts2.oval.interceptor.SimpleField">
            <interceptor-ref name="ovalValidation">
                <param name="programmatic">false
            </interceptor-ref>
            <result type="void">
        </action>
        <action name="modelDrivenAction" class="org.apache.struts2.oval.interceptor.ModelDrivenAction">
            <interceptor-ref name="ovalValidation">
              <param name="validateJPAAnnotations">true
            </interceptor-ref>
            <result type="void">
        </action>
        <action name="memberObject" class="org.apache.struts2.oval.interceptor.MemberObject">
            <interceptor-ref name="ovalValidation">
              <param name="validateJPAAnnotations">true
            </interceptor-ref>
            <result type="void">
        </action>
    </package>
</xwork>

Other Struts examples (source code examples)

Here is a short list of links related to this Struts oval-test.xml source code file:

... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.