wood burning stoves 2.0*
The moose likes Struts and the fly likes Validator Framework and BigDecimal Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Validator Framework and BigDecimal" Watch "Validator Framework and BigDecimal" New topic
Author

Validator Framework and BigDecimal

Gangrade Sumit
Greenhorn

Joined: Jan 07, 2004
Posts: 3
I am having problem with validating BigDecimal using Struts Validator framework. Does any one have any clue on this ..how to do it.
String validations are working fine.
Thanks
Rick Hightower
Author
Ranch Hand

Joined: Feb 20, 2002
Posts: 350
Struts has support for validating all the primitive types. If you one about a big decimal, you could write your own custom validator rule.
See the book "Professional Struts" written by James Goodwill and Rick Hightower for step-by-step instructions for creating your own custom validator rule. Alternatively, you look at the source code for the existing validator rules.


Rick Hightower is CTO of Mammatus which focuses on Cloud Computing, EC2, etc. Rick is invovled in Java CDI and Java EE as well. linkedin,twitter,blog
 
 
subject: Validator Framework and BigDecimal