You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Dimitris Mouchritsas <di...@eurodyn.com> on 2008/03/20 10:25:37 UTC

Using xdoclets and minlength from validator

Hi all, I'm trying to make a password field be at least 6 characters in 
length but the check doesn't seem to work.
Here's my code:
    /**
     * @struts.validator type="required,minlength,maxlength,mask"
     *
     * @struts.validator-var name="minlength" value="5"
     * @struts.validator-var name="maxlength" value="20"
     * @struts.validator-var name="mask" value="^[a-zA-Z_0-9-]*$"
     *
     * @struts.validator-args arg0resource="prompt.password"
     * @struts.validator-args arg1value="${var:minlength}"
     * @struts.validator-args arg2value="${var:maxlength}"
     *
     * @param password The password to set.
     */
   
    public void setPassword(String password) {
            this.password = password;
    }

Any ideas? Thanks


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org