You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@struts.apache.org by tm...@apache.org on 2006/06/23 07:59:37 UTC

svn commit: r416575 - in /struts/action2/trunk/archetype/src/main/resources/archetype-resources/src/main/resources/com/myComp/myApp: HelloWorldAction-helloWorld-validation.xml HelloWorldAction-validation.xml

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>
---> 
+