struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vinicius Caldeira Carvalho <>
Subject Validator what am I missing??
Date Tue, 28 Dec 2004 13:17:05 GMT
Hi there. I can't get validator to work (although I've done this before) 
I know I'm missing something.
Here's my configuration files:

<plug-in className="org.apache.struts.validator.ValidatorPlugIn">
        <set-property property="pathnames" 
value="/WEB-INF/validator-rules.xml, /WEB-INF/validation.xml"/>


        <form name="cadastrarHistoricoNegociacaoForm">
            <field property="outras" depends="required">
                <arg0 key="historicoNegociacao.campo.outras"/>
            <field property="areaAtuacao" depends="required">
                <arg0 key="historicoNegociacao.campo.atuacao"/>

I have the original validator-rules.xml and the appResources has all the 
default messages.

My form, extends ValidatorForm, and I have a validate method with this body:

ActionErrors errors = super.validate(mapping,request);
if(errors == null){
            errors = new ActionErrors();
if(produtos.size() == 0){

Problem is, the call to the super class always return an empty (not 
null) ActionErrors. What could be wrong?


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

View raw message