Actually what I have noticed that, if you make any mistake(may a single
spelling) in validation xml file, it will
not catch any validation error.

On Dec 19, 2007 9:19 PM, TuomoS <[EMAIL PROTECTED]> wrote:

>
> How can I confirm that the XML validator file is read? It seems that the
> actionName-validation.xml is not read. I have checked many times that the
> action java class matches with the xml file name.
>
> actionName.java
> actionName-validation.xml (when using execute method in submit)
>
> I overrided the validate() method in my action for debugging. I can add a
> fielderror manually with hasFieldError() method and it is then shown in
> the
> jsp.
>
> Is it mandatory to define doctype in the validation xml file? And is it
> really enough just to have the file in classpath? (WEBINF/..)
>
> clip from the validation file:
>
> <validators>
>  <field name="trader.address.name">
>     <field-validator type="requiredstring">
>        <message key="errors.required.name"/>
>     </field-validator>
>  </field>
>
> .
> .
> .
> :clap:
>
> </validators>
> --
> View this message in context:
> http://www.nabble.com/Struts-2.0.9-server-side-validation-problem-tp14419444p14419444.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Thanks & Regards
 Arpan Debroy

AOL Online India Private Ltd
RMZ EcoSpace Campus 1A
Outer Ring Road, Bellandur,
Bangalore - 560037
India
Mobile No :+9886006306
on-board :+91 (80) 4035 4528
E-mail : [EMAIL PROTECTED]

Reply via email to