RE: A Better Way to Validate
Hmmm, Patrick seems to be doing the same thing I am - generating ActionForms from POJOs with XDoclet. I wonder if he's using my patch or if he's found another way?
Also, he asks if there's a better way to validate:
My ideal way to validate would be to add xdoclet tags right to my domain model to handle validation.
I guess I'm here to brighten your day then - this is exactly what I'm doing with struts-resume. Check it out: User.java
contains @struts.validator
tags that are pushed into the generated ValidatorForm via a custom struts_form.xdt (xdoclet) template. Enjoy!