Author: tmjee
Date: Thu Jun 22 22:59:36 2006
New Revision: 416575

URL: http://svn.apache.org/viewvc?rev=416575&view=rev
Log:
WW-1359
 - make validation works 

Modified:
    
struts/action2/trunk/archetype/src/main/resources/archetype-resources/src/main/resources/com/myComp/myApp/HelloWorldAction-helloWorld-validation.xml
    
struts/action2/trunk/archetype/src/main/resources/archetype-resources/src/main/resources/com/myComp/myApp/HelloWorldAction-validation.xml

Modified: 
struts/action2/trunk/archetype/src/main/resources/archetype-resources/src/main/resources/com/myComp/myApp/HelloWorldAction-helloWorld-validation.xml
URL: 
http://svn.apache.org/viewvc/struts/action2/trunk/archetype/src/main/resources/archetype-resources/src/main/resources/com/myComp/myApp/HelloWorldAction-helloWorld-validation.xml?rev=416575&r1=416574&r2=416575&view=diff
==============================================================================
--- 
struts/action2/trunk/archetype/src/main/resources/archetype-resources/src/main/resources/com/myComp/myApp/HelloWorldAction-helloWorld-validation.xml
 (original)
+++ 
struts/action2/trunk/archetype/src/main/resources/archetype-resources/src/main/resources/com/myComp/myApp/HelloWorldAction-helloWorld-validation.xml
 Thu Jun 22 22:59:36 2006
@@ -10,7 +10,7 @@
        <field name="name">
                <field-validator type="requiredstring">
                        <param name="trim">true</param>
-                       <message>Name is required</message>
+                       <message>Name cannot be empty</message>
                </field-validator>
        </field>
 </validators>

Modified: 
struts/action2/trunk/archetype/src/main/resources/archetype-resources/src/main/resources/com/myComp/myApp/HelloWorldAction-validation.xml
URL: 
http://svn.apache.org/viewvc/struts/action2/trunk/archetype/src/main/resources/archetype-resources/src/main/resources/com/myComp/myApp/HelloWorldAction-validation.xml?rev=416575&r1=416574&r2=416575&view=diff
==============================================================================
--- 
struts/action2/trunk/archetype/src/main/resources/archetype-resources/src/main/resources/com/myComp/myApp/HelloWorldAction-validation.xml
 (original)
+++ 
struts/action2/trunk/archetype/src/main/resources/archetype-resources/src/main/resources/com/myComp/myApp/HelloWorldAction-validation.xml
 Thu Jun 22 22:59:36 2006
@@ -3,10 +3,12 @@
                "-//OpenSymphony Group//XWork Validator 1.0.2//EN" 
                "http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd";>
  
-<!-- 
-  validators common to "MyAction" goes here
 <validators>
-
+       <field name="name">
+               <field-validator type="requiredstring">
+                       <message>Name is required</message>
+               </field-validator>
+       </field>
 </validators>
---> 
+
  


Reply via email to