From: Tony B. <to...@to...> - 2003-04-03 16:08:32
|
Ok, I have moved the concept of a form class into my code base. I have also implemented support for an XML config file which, at least for me, seems much more readable and easier to write documentation against. I have done some research and I now appreciate the difference between the original ActionForm (ala struts) and what I have implemented. Having a validate method in the form is valuable but, IMHO, doesn't encapsulate that logic properly for best reuse. In the code I have been working on, validation logic is no different than any other business logic. Thus it is quite trivial to have a validation command that can be applied to one or more views which, I feel personally, makes reuse more plausible. Also, I have done more philosophical thinking and I can appreciate the desire by some to adhere strictly to Struts. I have reserved myself to being Ok if the code i have developed is considered 'struts-ish'. Anyway, this code, in my best estimation can be considered more of an RC1. I'm going to generate the phpDoc documentation, create a tarball and let you all take another look. -- Tony Bibbs "I guess you have to remember that those who don't to...@to... hunt or fish often see those of us who do as harmlessly strange and sort of amusing. When you think about it, that might be a fair assessment." --Unknown |