RE: Want to reject all-whitespace text input.

2004-11-30 Thread Joe Germuska
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

RE: Want to reject all-whitespace text input.

2004-11-30 Thread Dahnke, Eric (Company IT)
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

Re: Want to reject all-whitespace text input.

2004-11-21 Thread Frank Burns
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

Re: Want to reject all-whitespace text input.

2004-11-21 Thread Joe Germuska
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

Re: Want to reject all-whitespace text input.

2004-11-21 Thread Erik Weber
- 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

Re: Want to reject all-whitespace text input.

2004-11-21 Thread Frank Burns
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

Re: Want to reject all-whitespace text input.

2004-11-21 Thread Joe Germuska
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

Want to reject all-whitespace text input.

2004-11-21 Thread Frank Burns
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