Remove the {8} from the Mask and also include the maxlength validation
on that field. Something like this:

<field property="field1" depends="mask,maxlength">
        <arg0 key="mykey"/>
        <arg1 name="maxlength" key="${var:maxlength}" resource="false"/>
        <var>
                <var-name>maxlength</var-name>
                <var-value>8</var-value>
        </var>
        <var>
                <var-name>mask</var-name>
                <var-value>^[a-zA-Z0-9\]*$</var-value>
        </var>
</field>

Daniel

-----Original Message-----
From: Marisol Opreni [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 25, 2006 7:30 AM
To: 'Struts Users Mailing List'
Subject: Mask validation

Hi.

How can I specify a mask with letters, underscores and numbers with only
8
charaters in total?

Something like this? <var-value>[a-zA-Z0-9]{8}$</var-value>

 

Thanks!

Marisol.

 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to