Revision: 179
Author: alllee
Date: 2006-05-17 16:11:47 -0700 (Wed, 17 May 2006)
ViewCVS: http://svn.sourceforge.net/gabel/?rev=179&view=rev
Log Message:
-----------
adding very simple participant validation
Added Paths:
-----------
trunk/gee/src/java/edu/indiana/psych/gee/bean/Participant-validation.xml
Added: trunk/gee/src/java/edu/indiana/psych/gee/bean/Participant-validation.xml
===================================================================
--- trunk/gee/src/java/edu/indiana/psych/gee/bean/Participant-validation.xml (rev 0)
+++ trunk/gee/src/java/edu/indiana/psych/gee/bean/Participant-validation.xml 2006-05-17 23:11:47 UTC (rev 179)
@@ -0,0 +1,19 @@
+<!DOCTYPE validators PUBLIC "-//OpenSymphony Group//XWork Validator 1.0.2//EN"
+"http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd">
+<!--
+vim:sts=2:sw=2:
+-->
+<validators>
+ <field name="name">
+ <field-validator type="requiredstring">
+ <message>Please enter your name.</message>
+ </field-validator>
+ </field>
+ <field name="age">
+ <field-validator type="fieldexpression">
+ <param name="expression">age neq "Under 18"</param>
+ <message>You must be over 18 to participate.</message>
+ </field-validator>
+ </field>
+</validators>
+
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|