metacat/lib/spatial/geoserver/WEB-INF/validation.xml @ 3307
1 |
<?xml version="1.0" encoding="ISO-8859-1" ?>
|
---|---|
2 |
|
3 |
<!DOCTYPE form-validation PUBLIC
|
4 |
"-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.0//EN"
|
5 |
"http://jakarta.apache.org/commons/dtds/validator_1_0.dtd">
|
6 |
|
7 |
<form-validation>
|
8 |
|
9 |
<!--
|
10 |
This is a blank Validator form file with a commented examples.
|
11 |
-->
|
12 |
|
13 |
<!-- An example global constant -->
|
14 |
<!--global>
|
15 |
|
16 |
<constant>
|
17 |
<constant-name>postalCode</constant-name>
|
18 |
<constant-value>^\d{5}\d*$</constant-value>
|
19 |
</constant>
|
20 |
|
21 |
</global-->
|
22 |
|
23 |
|
24 |
<!-- An example form -->
|
25 |
<!--formset>
|
26 |
|
27 |
<form name="logonForm">
|
28 |
<field
|
29 |
property="username"
|
30 |
depends="required">
|
31 |
<arg0 key="logonForm.username"/>
|
32 |
</field>
|
33 |
<field
|
34 |
property="password"
|
35 |
depends="required,mask">
|
36 |
<arg0 key="logonForm.password"/>
|
37 |
<var>
|
38 |
<var-name>mask</var-name>
|
39 |
<var-value>^[0-9a-zA-Z]*$</var-value>
|
40 |
</var>
|
41 |
</field>
|
42 |
</form>
|
43 |
|
44 |
</formset -->
|
45 |
|
46 |
<!-- An example formset for another locale
|
47 |
<formset language="fr">
|
48 |
|
49 |
<constant>
|
50 |
<constant-name>postalCode</constant-name>
|
51 |
<constant-value>^[0-9a-zA-Z]*$</constant-value>
|
52 |
</constant>
|
53 |
|
54 |
</formset>
|
55 |
-->
|
56 |
|
57 |
</form-validation>
|