struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Singh, Rajdeep" <>
Subject XML Validation not working
Date Fri, 27 Jul 2012 09:39:09 GMT
Hi All,

I have written classname-validation.xml as per tutorial given at Apache site but it's not
working for result name "input".

Questions :

1. Do I need to write something in struts.xml for default validator to work ? 

Below is my validation xml file :

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE validators PUBLIC
"-//OpenSymphony Group//XWork Validator 1.0.2//EN"
 <field name="userName">
 <field-validator type="requiredstring">
 	<param name="trim">true</param>
 	<message>User Name is required</message>


Rajdeep Singh

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message