Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Validator for NOT NULL/ blanks

 
Surendra Kumar
Ranch Hand
Posts: 236
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic