File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

struts validation

 
lynn fann
Ranch Hand
Posts: 115
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what are the differences between using validator.xml, do validation at formbean, doing validation at the actionclass. What are the advantage and disadvantage of using each of them? thanks
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A question very similar to this was just answered in this thread.

One other thing I would add is that I consider validations performed by the Struts Validation Framework and those performed by your own code in the validate() method of an ActionForm bean to be functionally equivalent. They both should be used for basic validations.
[ March 18, 2007: Message edited by: Merrill Higginson ]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic