Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Validation in LazyDynaBean

 
Kalyana Sundaram
Ranch Hand
Posts: 94
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to perform Validation in FormBean of type org.apache.commons.BeanUtils.LazyDynaBean?
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can't use the validation framework with LazyDynaBean. Use org.apache.struts.validator.LazyValidatorForm instead. Then you can define validation rules in the validation.xml file just as you would with any other form.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic