aspose file tools*
The moose likes Spring and the fly likes white spaces are not recognizing in validate() Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "white spaces are not recognizing in validate()" Watch "white spaces are not recognizing in validate()" New topic
Author

white spaces are not recognizing in validate()

indu iyengar
Ranch Hand

Joined: Jul 30, 2010
Posts: 115
Hi
am using but here this is not validating for any whitespaces, just validating for empty field.
Is there any other way to recognize white spaces between a word?

thanks ,
Indu
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

rejectIfEmptyOrWhitespace checks for null, "", or only whitespaces (e.g. " "). You'll have to make your own Validator for anything else.


[My Blog]
All roads lead to JavaRanch
indu iyengar
Ranch Hand

Joined: Jul 30, 2010
Posts: 115
Is it wont check if I give some thing like val idator? (space between val and idator)
Prasad Krishnegowda
Ranch Hand

Joined: Apr 25, 2010
Posts: 531

indu iyengar wrote:Is it wont check if I give some thing like val idator? (space between val and idator)

No, it won't check for this condition. You have to write your own validation technique for this..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: white spaces are not recognizing in validate()