My XDoclet Struts Validator validation.xml (for Struts 1.1) has been
posted to the XDoclet tracker:
<http://sourceforge.net/tracker/index.php?func=detail&aid=599350&group_id=31602&atid=402706>
I'm hoping it will be added to the codebase and put into the upcoming
new release of XDoclet (although I'm using XDoclet from CVS builds).
Read the HTML file attachment on the issue page above for an example of
how it works.
If you're hand-coding validation.xml and using ValidatorForm extensions
then this is for you!
Suggestions/comments welcome. (but keep in mind that I'm not on the
struts-user list, so reply on struts-dev or to me directly)
Erik
Erik Hatcher wrote:
> I've written the first pass at an XDoclet validation.xml generator based
> off @tags metadata on ActionForm beans.
>
> I'll be posting my code to the xdoclet-devel list tomorrow in case
> anyone is interested (its on another machine, otherwise I'd do it right
> now).
>
> Does this sound reasonably useful to folks here?
>
> I'm amazed no one has done this yet, as its going to dramatically
> improve the quality of our Struts application by ensuring that the
> ActionForm field names stay in sync precisely with validation.xml. It
> can be argued that validation should be separate from the actual
> ActionForm code, but in our case it won't be in the foreseable future
> but it could be overridden if desired.
>
> Any thoughts or suggestions on such a beast?
>
> Thanks,
> Erik
>
>
> --
> To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>
>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>