<field property="email" depends="required">

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]

Reply via email to