File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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
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
 
Similar Threads
problem in using mask validation
mask is not working
Using masks in Validations
Validator Framework
plz...help me urgent !!!!