> Though, there is still a ton maintenance going on here. We have the 
> properties defined in the HTML form, and the struts-config, and in the 
> validator.xml, and then in some type of corresponding property in the 
> business bean, not to mention the actual data store. So to add a 
> field, we have to update five (or more) components.
>

In my XDoclet-enabled apps, if I had a new property, I only have to add it
in two places - in my POJO and in my JSP.  validation.xml is generated, as
well as the ActionForm.  Using Erik Hatcher's StrutsGen Tool, you can also
generate a skeleton JSP from the generated ActionForm - but this is only
logical to do the first time.  I don't know if it'll ever be possible to
eliminate the editing of the JSP - unless we add an XML file or something in
the ActionForm that specifies field order, field type, etc.  Still, there's
so much custom stuff (label taglib, javascript pop-up calendars) that I put
into forms, I doubt this will ever be possible.

IMO, XDoclet is the best thing that's happened to Java Development since
Ant.

Matt




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to