JavaScribe is a highly extensible and flexible framework for defining software patterns and generating code that implements those patterns.
JavaScribe comes out-of-the-box with a number of patterns useful for generating Java- and HTML-based data driven Java web applications including SPWA-style HTML applications.