Hi Matt,
In my validation.xml I have:
...
allowallschemes
true
mask
^\d+$
mask
\d{1,}\.\d{1,}
...
And My ErrorValidation.jsp is :
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
-Mensaje original-
De: Matt Bathje [mailto:[EMAIL PROTECTED]
Enviado el: viernes, 07 de enero de 2005 16:29
Para: Struts Users Mailing List
Asunto: Re: Trouble validating
Miguel Atienza wrote:
> Hi!,
> I´m having trouble validating a standard form using de validation.xml
file.
> I defined one class,MyValidatorForm that extends ValidatorForm with the
> fields of the form
> and the getters and setters methods.
>
> In the validation.xml,when I use depends="required" for the fields I want,
> It works fine,
> And I get the messages fine
> With in a jsp page : /pages/ErrorValidation.jsp
> but when I use depends="required,double" or depends="required,url"
> It does not work.
> If I send a String in the form field that is supposed to be double it
won´t
> get any error.
> I also have tried using some mask following the jakarta RegExp
> ,I tested then in http://jakarta.apache.org/regexp/applet.html.
> but only some mask´s works when I put them in the validation.xml.
>
> In the struts-config.xml I have:
>
>
> property="pathnames"
> value="/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml"/>
>
>
> And in the action tag that uses this validation
> I have this attributes
>
> name="MyValidatorForm"
> validate="true"
> scope="request"
> input="/pages/ErrorValidation.jsp"
>
> Any help is appreciated.
> Miguel
>
Migule - we need to see what your validation.xml for the fields that
aren't working looks like. The relevant JSP (for the non-working fields)
may also help.
Matt
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]