Hi Adam, Actually, my company has a Model Layer Framework for business objects available free on SourceForge at: http://sourceforge.net/projects/agmlf/
It allows you to return arrays of error messages from the business objects to solve this problem. Larry Maturo, Software Consultant, Athens Group, Inc. web: http://www.athensgroup.com email: [EMAIL PROTECTED] 5608 Parkcrest Drive Suite 200 Austin, Texas 78731-4916 voice: 512.345.0600 ext. 129 fax: 512.345.4088 Athens Group: Experience. Technology. Results. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of adam kramer Sent: Tuesday, September 03, 2002 11:01 AM To: [EMAIL PROTECTED] Subject: [MVC-Programmers] Business Validation My quesetion concerns where Business Validation should be done. It seems to me a good place to put validation for business objects would be in the business object itself. For instance, if you have a User busines object where the username had to be alphanumeric string and 6-8 characters, this information could be validated in a validate function in the business object. This kind of validation could be done in the presentation/client layer as well. Is this similar to what other people have done? Or do you put application-business validation in the Actions or in some sort of action service class? Also, if there is validation in business objects, how do you return lists of errors in validation? The ActionErrors class in struts is tied to the framework. Has anyone done anything like this, or do most people rely on the presentation layer for lexical, syntactic and semantic validation? Thanks, Adam K. _______________________________________________ MVC-Programmers mailing list [EMAIL PROTECTED] http://www.netbean.net/mailman/listinfo/mvc-programmers _______________________________________________ MVC-Programmers mailing list [EMAIL PROTECTED] http://www.netbean.net/mailman/listinfo/mvc-programmers