mirror of
https://github.com/apache/struts.git
synced 2026-08-31 11:24:28 +00:00
WW-1359
- make validation works git-svn-id: https://svn.apache.org/repos/asf/struts/action2/trunk@416575 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
+1
-1
@@ -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>
|
||||
|
||||
+6
-4
@@ -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>
|
||||
-->
|
||||
|
||||
|
||||
Reference in New Issue
Block a user