Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts validations - depends="integer"

 
anu ramk
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am amazed to find out that the built-in validator rules for "integer" doesn't catch a value of all spaces.
I had this validations.xml where I put in depends="integer" and it gave the expected error messages for all erroneous inputs containing alphabets, *, & etc.. it even caught " 6"... but it doesn't seem to validate the field when i space it out..
Is this the way struts validations are supposed to behave...? Any ideas?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic