You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by ma...@apache.org on 2004/09/12 22:28:06 UTC

cvs commit: jakarta-struts/web/blank/WEB-INF validation.xml

martinc     2004/09/12 13:28:06

  Modified:    web/blank/WEB-INF validation.xml
  Log:
  The Commons Validator DTD requires at least one form in a formset now, so
  the commented out sections need to be uncommented to get struts-blank to
  start up successfully.
  
  Revision  Changes    Path
  1.7       +31 -15    jakarta-struts/web/blank/WEB-INF/validation.xml
  
  Index: validation.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-struts/web/blank/WEB-INF/validation.xml,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- validation.xml	3 Sep 2004 04:38:56 -0000	1.6
  +++ validation.xml	12 Sep 2004 20:28:06 -0000	1.7
  @@ -7,7 +7,7 @@
   <form-validation>
   
   <!--
  -     This is a blank Validator form file with a commented examples.
  +     This is a minimal Validator form file with a couple of examples.
   -->
   
       <global>
  @@ -23,28 +23,27 @@
   
       <formset>
   
  -        <!-- An example form
  +        <!-- An example form -->
           <form name="logonForm">
               <field
                   property="username"
                   depends="required">
                       <arg key="logonForm.username"/>
  -             </field>
  -         <field
  -            property="password"
  -            depends="required,mask">
  -            <arg key="logonForm.password"/>
  -            <var>
  -                <var-name>mask</var-name>
  -                <var-value>^[0-9a-zA-Z]*$</var-value>
  -            </var>
  -         </field>
  +            </field>
  +            <field
  +                property="password"
  +                depends="required,mask">
  +                    <arg key="logonForm.password"/>
  +                    <var>
  +                        <var-name>mask</var-name>
  +                        <var-value>^[0-9a-zA-Z]*$</var-value>
  +                    </var>
  +            </field>
           </form>
  -        end example form -->
   
       </formset>
   
  -    <!-- An example formset for another locale
  +    <!-- An example formset for another locale -->
       <formset language="fr">
   
           <constant>
  @@ -52,7 +51,24 @@
               <constant-value>^[0-9a-zA-Z]*$</constant-value>
           </constant>
   
  +        <!-- An example form -->
  +        <form name="logonForm">
  +            <field
  +                property="username"
  +                depends="required">
  +                    <arg key="logonForm.username"/>
  +            </field>
  +            <field
  +                property="password"
  +                depends="required,mask">
  +                    <arg key="logonForm.password"/>
  +                    <var>
  +                        <var-name>mask</var-name>
  +                        <var-value>^[0-9a-zA-Z]*$</var-value>
  +                    </var>
  +            </field>
  +        </form>
  +
      </formset>
  -   -->
   
   </form-validation>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org