Hi, I created an action name LoginAction and the corresponding validation XML file named LoginAction-validation.xml. Both files are in the same directory and the contents of the XML one are:
<!DOCTYPE validators PUBLIC "-//OpenSymphony Group//XWork Validator 1.0.2//EN" "http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd"> <validators> <field name="userName"> <field-validator type="requiredstring"> <message>You have to fill in your user name.</message> </field-validator> </field> <field name="password"> <field-validator type="requiredstring"> <message>You have to fill in your password.</message> </field-validator> </field> </validators> # tree . |-- BaseAction.java |-- BaseActionWithSession.java |-- CheckLoginInterceptor.java |-- LoginAction-validation.xml |-- LoginAction.java |-- LogoutAction.java `-- lsf |-- accounts | `-- ListAction.java |-- fractions | `-- ListAction.java |-- groups | `-- ListAction.java |-- home | `-- HomeAction.java |-- shares | `-- ListAction.java |-- subgroups | `-- ListAction.java `-- users |-- ListAction.java `-- ListAction.java~ 8 directories, 14 files [EMAIL PROTECTED]:~/apache/struts/cdbweb2/src/main/java/actions$ When I test my webapp this validation is completely ignored. Why is that so? I am using Java 5, Struts 2.0.11 and jetty/tomcat. thank you -- Filipe David Manana, [EMAIL PROTECTED] Obvious facts are like secrets to those not trained to see them.