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 Struts validations - depends= Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts validations - depends="integer"" Watch "Struts validations - depends="integer"" New topic
Author

Struts validations - depends="integer"

anu ramk
Greenhorn

Joined: Feb 26, 2004
Posts: 3
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?
 
wood burning stoves
 
subject: Struts validations - depends="integer"