<field property="email" depends="required">
I think you missed some other discussion on this -- Frank wants a completely blank value to be accepted, but not a value which consists only of one-or-more whitespace characters.
This is impossible in the current system, as the mask validator only executes if the value it is testing against is non-empty. That seems like a bug to me, but it's how it works.
Joe
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 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 Validator's validation process, that always accepts whitespace? Or is there something else going on?
Do I have to resort to accepting the all-whitespace input, detecting it in the ActionForm's validate method and manually setting a message in ActionErrors?
Thanks,
Frank.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------
NOTICE: If received in error, please destroy and notify sender. Sender does not waive confidentiality or privilege, and use is prohibited.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--
Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com
"Narrow minds are weapons made for mass destruction" -The Ex