Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Validator Framework and BigDecimal

 
Gangrade Sumit
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 350
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic