We have developed a language that can be used in place of wizards to generate Web applications. As shown in this brief presentation http://ltiwww.epfl.ch/WebLang/PetStore.html, this language nicely supports patterns expressed by diagrams closely related to UML.
A self contained functional part of the PetStore is described with a few diagrams and is available in a single source file written in our language. This source can be compiled within Eclipse to obtain all the required classes with doclets, the deployment files, as well as the xdoclet-build.xml and packaging-build.xml.
Please, have a look at this approach (which I successfully used in a class room) !
Best Regards,
Claude