bject: Want to reject all-whitespace text input.
Hi,
I am trying to write a regular expression for a mask, for use in the
validation.xml file, that will reject input text that consists of all
whitespace characters. But, no matter what pattern I try, an
all-whitespace
entry is always accepted
Cheers, Eric
> -Original Message-
> From: Frank Burns [mailto:[EMAIL PROTECTED]
> Sent: Sunday, November 21, 2004 8:23 AM
> To: Struts Users Mailing List
> Subject: Want to reject all-whitespace text input.
>
>
> Hi,
>
> I am trying to write a regu
ot; <[EMAIL PROTECTED]>
Sent: Sunday, November 21, 2004 6:45 PM
Subject: Re: Want to reject all-whitespace text input.
At 1:33 PM -0500 11/21/04, Erik Weber wrote:
I think what you want is to leave out the "required" validator, but
to use the "minlength" validator with
At 1:33 PM -0500 11/21/04, Erik Weber wrote:
I think what you want is to leave out the "required" validator, but
to use the "minlength" validator with a value of 1. That should
allow a blank, but not a String shorter than 1, and whitespace
should be left out in the measurement. (I'm not positive
- From: "Joe Germuska" <[EMAIL PROTECTED]>
To: "Frank Burns" <[EMAIL PROTECTED]>; "Struts Users
Mailing List" <[EMAIL PROTECTED]>
Sent: Sunday, November 21, 2004 2:20 PM
Subject: Re: Want to reject all-whitespace text input.
The "requir
t; <[EMAIL PROTECTED]>
To: "Frank Burns" <[EMAIL PROTECTED]>; "Struts Users Mailing
List" <[EMAIL PROTECTED]>
Sent: Sunday, November 21, 2004 2:20 PM
Subject: Re: Want to reject all-whitespace text input.
The "required" validator should do what you ne
The "required" validator should do what you need. It requires that
the value be non-null and have at length > 0 after String.trim() is
called.
Joe
At 1:22 PM + 11/21/04, Frank Burns wrote:
Hi,
I am trying to write a regular expression for a mask, for use in the
validation.xml file, that wi
Hi,
I am trying to write a regular expression for a mask, for use in the
validation.xml file, that will reject input text that consists of all
whitespace characters. But, no matter what pattern I try, an all-whitespace
entry is always accepted.
Is there some strange rule, as part of the Validat
8 matches
Mail list logo