This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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


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?
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Struts validations - depends="integer"
 
It's not a secret anymore!