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

Struts example source code file (validation.xml)

This example Struts source code file (validation.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

an, an, apache, apache, configuration, doctype, foundation//dtd, iso-8859-1, public, software, the, the, validator, validator

The Struts validation.xml source code

<?xml version="1.0" encoding="ISO-8859-1" ?>

<!DOCTYPE form-validation PUBLIC
     "-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.3.0//EN"
     "http://jakarta.apache.org/commons/dtds/validator_1_3_0.dtd">

<form-validation>

<!--
     This is a minimal Validator form file with a couple of examples.
-->

    <global>

        <!-- An example global constant
        <constant>
            <constant-name>postalCode
            <constant-value>^\d{5}\d*$
        </constant>
        end example-->

    </global>

    <formset>

        <!-- An example form -->
        <form name="gangsterForm">
            <field
                property="age"
                depends="required">
                    <msg name="required" key="The age is required" resource="false"/>
            </field>
        </form>

    </formset>

</form-validation>

Other Struts examples (source code examples)

Here is a short list of links related to this Struts validation.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.