struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nguyen Xuan Son <yama...@gmail.com>
Subject comparing in validation.xml file
Date Wed, 02 Dec 2009 06:15:46 GMT
dear all
in C0003_ChangePasswordAction-validation.xml
i would like to compare the new password and the retype new password in
order to identify whether they are the same or not
however so far i only know to validate the specified field only, such as
<validators>
<field name="oldPass">
<field-validator type="requiredstring">
<param name="trim">true</param>
<message>error</message>
</field-validator>
</field>
 <field name="newPass">
<field-validator type="requiredstring">
<param name="trim">true</param>
<message>error</message>
</field-validator>
</field>
 <field name="retype">
<field-validator type="requiredstring">
<param name="trim">true</param>
<message>error</message>
</field-validator>
</field>
</validators>
please tell me what should i do if i want to work with more than
one validated fields
thank you very much

-- 
=======================================================================
Ritsumeikan University, Asia JinZai Project
Master of Information Science
Nguyen Xuan Son

Add       : Japan, Shiga-Ken, Kusatsu-Shi, Kasayama 3choume 1-18 ShiteiHaimu
Rien, Room 103
Tel/Fax  : 81-(0)90-3976 2246
Email    : nr0003xx@ed.ritsumei.ac.jp
Mobile   : 81-(0)90-3976 2246          URL  : http://www.ritsumei.jp
=======================================================================

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message