This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan 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

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts validations - depends="integer"" Watch "Struts validations - depends="integer"" New topic

Struts validations - depends="integer"

anu ramk

Joined: Feb 26, 2004
Posts: 3
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 agree. Here's the link:
subject: Struts validations - depends="integer"
Similar Threads
validator, same field, same formbean, diff JSP,diff validations
This weeks giveaway
validate integer works but double doesn't
display validation message as an alert in jsp which uses struts 2 validation.xml
struts validator. stoping on first validation error.