The moose likes Struts and the fly likes struts validation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struts validation" Watch "struts validation" New topic

struts validation

lynn fann
Ranch Hand

Joined: Oct 15, 2006
Posts: 115
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

Joined: Feb 15, 2005
Posts: 4864
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 ]

Consultant, Sima Solutions
I agree. Here's the link: http://aspose.com/file-tools
subject: struts validation
Similar Threads
can i assign an error message for validation annotation from a .properties file
How to add validation
date validation
what happens if i diable javascript in my browser?
Need HTML And Javascript Code