DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17150>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17150 Validation rules not reusable across layers, eg. EJBs ------- Additional Comments From [EMAIL PROTECTED] 2003-02-18 16:33 ------- Where we are going is that the Commons Validator is what you would use to do the business layer validations. Ideally, you could choose to use the same validation rules on the presentation layer (Struts) and business layer, but I don't think we are there yet. At this point, I don't think its Struts that needs to change, but I'm sure there are refinements we can make in the Commons Validator to make it easier to use on the business layer. (Feel free to jump in over there.) Meanwhile, we have setup a generic version of ActionErrors in the Commons. Struts will be migrating to that soon. The idea being, the business layer can pass a message back and have Struts perceive it as an ActionError. But, the message itself would be generic and not bound to any servlet interfaces. I agree that we need more support for the business layer, but I don't agree that its up to Struts to provide that support. We've been abstracting our core classes into the Commons, where someone could then assemble them back into a very cool domain layer framework. But, IMHO, these should be separate frameworks that happen to share a common mindset and base classes. -Ted. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
