This was the answer!
^[a-zA-Z0-9_]{8}$
Thanks everybody!
Marisol.
-Mensaje original-
De: Kalcevich, Daniel [mailto:[EMAIL PROTECTED]
Enviado el: Martes, 25 de Abril de 2006 11:33 a.m.
Para: Struts Users Mailing List
Asunto: RE: Mask validation
Remove the {8} from the Mask and also
If the user enters less than 8 char appears a message...
If he enters more than 8 char appears a message...
I don't want to drive him mad ;)
With the mask validation I want to show only ONE message to the user...
-Mensaje original-
De: Kalcevich, Daniel [mailto:[EMAIL PROT
that do what you are looking for?
Daniel
-Original Message-
From: Marisol Opreni [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 25, 2006 7:40 AM
To: 'Struts Users Mailing List'
Subject: RE: Mask validation
I need to be 8 characters, nor more neither less...
-Mensaje origin
ED]
Sent: Tuesday, April 25, 2006 9: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? [a-zA-Z0-9]{8}$
Thanks!
Marisol.
-
I need to be 8 characters, nor more neither less...
-Mensaje original-
De: Kalcevich, Daniel [mailto:[EMAIL PROTECTED]
Enviado el: Martes, 25 de Abril de 2006 11:33 a.m.
Para: Struts Users Mailing List
Asunto: RE: Mask validation
Remove the {8} from the Mask and also include the
-
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? [a-zA-Z0-9]{8}$
Hi.
How can I specify a mask with letters, underscores and numbers with only 8
charaters in total?
Something like this? [a-zA-Z0-9]{8}$
Thanks!
Marisol.
Here is the test case
import java.io.*;
import java.util.*;
import org.apache.commons.validator.*;
public class TestValidatorMask{
public static void main(String[] args)
throws Exception {
ValidatorResources vr = new ValidatorResources(getFormSetAsInputStream());
Form form = vr.getFor
> Hi Kishore, thanks for the tip... I tried what you suggested but it didn't
> work... while googling for answers I read somewhere that including UNICODE
> codes was only possible in *.properties files, not in *.XML ... from my
> experience, that seems to be right...
You are right. You have to dec
o: "Struts Users Mailing List"
Sent: Monday, January 31, 2005 7:47 PM
Subject: Re: [UNICODE characters in Mask validation rule]
Good evening. I'm a little stuck trying to create a global constant in
validation.xml that allows the mask rule to validate "special" spanish
i" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List"
Sent: Monday, January 31, 2005 7:47 PM
Subject: Re: [UNICODE characters in Mask validation rule]
Good evening. I'm a little stuck trying to create a global constant in
validation.xml that allows the mask rule to vali
> Good evening. I'm a little stuck trying to create a global constant in
> validation.xml that allows the mask rule to validate "special" spanish
> characters like Ñ [ UNICODE = \u00d1 ] for names, surnames, city names and
> so... Can someone give a hint ;^) ? Mi RegExp is like this: ^[A-Z.Ñ\s]
Good evening. I'm a little stuck trying to create a global constant in
validation.xml that allows the mask rule to validate "special" spanish
characters like Ñ [ UNICODE = \u00d1 ] for names, surnames, city names and
so... Can someone give a hint ;^) ? Mi RegExp is like this: ^[A-Z.Ñ\s]*$
Rega
13 matches
Mail list logo