You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by ma...@apache.org on 2004/01/28 02:59:00 UTC

cvs commit: jakarta-velocity-tools/examples/struts/WEB-INF struts-config.xml validation.xml web.xml

marino      2004/01/27 17:59:00

  Modified:    examples/struts/WEB-INF struts-config.xml validation.xml
                        web.xml
  Log:
  Added entry points to the new Validator app and updated web.xml to include the app 5 module.  Small corrections to validation.xml
  
  Revision  Changes    Path
  1.4       +10 -0     jakarta-velocity-tools/examples/struts/WEB-INF/struts-config.xml
  
  Index: struts-config.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-velocity-tools/examples/struts/WEB-INF/struts-config.xml,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- struts-config.xml	27 Jan 2004 22:13:05 -0000	1.3
  +++ struts-config.xml	28 Jan 2004 01:59:00 -0000	1.4
  @@ -57,6 +57,16 @@
            redirect="true"
            contextRelative="true" />
   
  +     <forward name="app5"
  +         path="/app5/index_vm.do"
  +         redirect="true"
  +         contextRelative="true" />
  +
  +     <forward name="app5Jsp"
  +         path="/app5/index_jsp.do"
  +         redirect="true"
  +         contextRelative="true" />
  +
        <forward name="math"
            path="/examples/context_tools/mathtool-demo.vm"
            redirect="true"
  
  
  
  1.2       +5 -3      jakarta-velocity-tools/examples/struts/WEB-INF/validation.xml
  
  Index: validation.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-velocity-tools/examples/struts/WEB-INF/validation.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- validation.xml	27 Jan 2004 22:11:51 -0000	1.1
  +++ validation.xml	28 Jan 2004 01:59:00 -0000	1.2
  @@ -6,9 +6,11 @@
   <form-validation>
      <formset>
         <form name="emailForm">
  -         <field property="email" depends="email">
  -            <arg0 key="label.email"/>
  -         </field>
  +         <field property="email"
  +         	depends="required,email">
  +            	<msg name="email" key="errors.invalid"/>
  +        	<arg0 key="emailForm.label.email"/>
  +	 </field>
         </form>
      </formset>
   </form-validation>
  
  
  
  1.5       +4 -0      jakarta-velocity-tools/examples/struts/WEB-INF/web.xml
  
  Index: web.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-velocity-tools/examples/struts/WEB-INF/web.xml,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- web.xml	27 Jan 2004 18:44:11 -0000	1.4
  +++ web.xml	28 Jan 2004 01:59:00 -0000	1.5
  @@ -29,6 +29,10 @@
         <param-value>/WEB-INF/struts-app4-config.xml</param-value>
       </init-param>
       <init-param>
  +      <param-name>config/app5</param-name>
  +      <param-value>/WEB-INF/struts-app5-config.xml</param-value>
  +    </init-param>
  +    <init-param>
         <param-name>debug</param-name>
         <param-value>2</param-value>
       </init-param>
  
  
  

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