Look at validator framework, in commons or Stuts for client and server side
validation. (for advanced, you can have validate() return strings of error
messages based on bean values, but do simple expressions first, all in xml).
hth,
Vic
----- Original Message -----
From: "adam kramer" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, September 03, 2002 12:00 PM
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
>
>
> To unsubscribe from this group, send an email to:
> [EMAIL PROTECTED]
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>


------------------------ Yahoo! Groups Sponsor ---------------------~-->
4 DVDs Free +s&p Join Now
http://us.click.yahoo.com/pt6YBB/NXiEAA/MVfIAA/NhFolB/TM
---------------------------------------------------------------------~->

To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 


_______________________________________________
MVC-Programmers mailing list
[EMAIL PROTECTED]
http://www.netbean.net/mailman/listinfo/mvc-programmers

Reply via email to