Hello friends - I'm struggling with a bit of an architecture question, and I'm hoping that some of the gurus can help me out.
I have the validator configured to validate on my ActionForm fine, and for simple validations things seem to work out AOK. However, for more complicated validations (i.e., inusre this value is unique against the dataset with this criteria), I really need to goto the database to make the appropriate evaluations. Ideally, however, I'd put all this kind of thing in my business layer; I'm trying very hard to have all calls to retrieve and / or modify persistent objects go through this layer, I've got needs later on such that I'll be interacting with these objects from outside of struts / the web interface. There's the rub; I've got a clean, quick way to perform simple validations, but I can't see how to expose it to a business layer without mandating it accept some ackward objects that are specific to struts. On the other hand, I really want to leverage the existing struts validation where possible, but I'd hate to write code to duplicate its effects somewhere else. Any insight is greatly appreciated. Thanks! - cm ____________________________________________________________________________________ Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping