Validations

Galera precisei mudar do validate do actionForm para o validator do struts, mais não está funcionando!!!

Plugin no Struts-config

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

Validator-rules.xml

    <formset>
        <form name="UsuarioForm">
          <field property="nome" depends="required" >
              <arg key="error.vazio.required" />              
          </field>
      </form>
    </formset>

message.properties

errors.prefix=<span style="color: red">
errors.suffix=</span>
error.vazio.required=* Este campo deve ser preenchido!

JSP

<html:form action="usuario" focus="idusuario">        
            <bean:message key="label.id"/><html:text property="idusuario"/>
            <bean:message key="label.nome"/><html:text property="nome"/>
            <bean:message key="label.senha"/><html:password property="senha"/>
            <html:submit property="method" ><bean:message key="button.salvar" /></html:submit>
            <html:submit property="method" ><bean:message key="button.deletar" /></html:submit>
            <html:submit property="method" ><bean:message key="button.buscar" /></html:submit>            
        </html:form>

Onde estou errando?

Existem outras maneiras de fazer validações com struts?