permaculture playing cards
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 Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Validator for NOT NULL/ blanks" Watch "Validator for NOT NULL/ blanks" New topic

Validator for NOT NULL/ blanks

Surendra Kumar
Ranch Hand

Joined: Jul 04, 2006
Posts: 236

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?

I agree. Here's the link:
subject: Validator for NOT NULL/ blanks
jQuery in Action, 3rd edition