Florin Vancea <[EMAIL PROTECTED]> wrote:
> But really, what if (only what if) one would provide the Struts validator
> and config files (which are info-rich-enough), along with the *.properties
> containing messages, and at the startup of the WAR (or even at build time)
> Velocity would generate a set of Velocity templates for all required pages
> (maybe even Action classes).

I take a Cayenne database model, run it through Velocity and create a 
combination of nine struts-config files, validator xml files, java actions, 
and velocity templates for generating reports on database entities and 
creating/editing database entities.  Cayenne takes the same database model, 
runs it through velocity and creates database layer objects.   I just give 
my ant task a database table entity and out comes a report component and 
editing tool.  The only thing I might do afterward is swap a few fields on 
the html.vm template to organize the form differently.  That and update my 
main struts-config.xml file to include all of the new pieces.

So it's certainly doable.

-Mike

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

Reply via email to