aspose file tools*
The moose likes Struts and the fly likes Validator for NOT NULL/ blanks Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Validator for NOT NULL/ blanks" Watch "Validator for NOT NULL/ blanks" New topic
Author

Validator for NOT NULL/ blanks

Surendra Kumar
Ranch Hand

Joined: Jul 04, 2006
Posts: 235
Hi,

I am trying to validate a form input field. my requirment is not allowing spaces in the input value. I am not able to work it out. Even if it's a required field, if just blank spaces are typed in, and submit, it's submitting. I am using struts validator (validation.xml).
Can you please help?

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Validator for NOT NULL/ blanks