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
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Reply 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: 14669
    
  11

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: 503

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..


Regards, Prasad
SCJP 5 (93%)
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: white spaces are not recognizing in validate()
 
Similar Threads
Converting an object into an XML
Ignoring white space
white spaces and CPU time
Does XML preserve white spaces
Parsing XML using DOM