The Servlet-Based Content Creation Framework is an easy-used and easily-understood compact, content creation framework utilizing hamlets; a servlet extension that reads XHTML and uses the simple API for XML. Read this article on introducing Hamlets and learn how they can be used to separate Java and HTML in the same source file.
Reminds me a bit of Enhydra’s XMLC project. Wich compiles HTML into classes wich you can use as (org.w3c.)DOM implementations.
LoginHTML page = new LoginHTML();
page.setTextUsercode(“pietje”);
also has a nice plugin for eclipse available.
http://sourceforge.net/projects/xmlceclipse
This projects seems to be to XMLC what SAX is to DOM. Simply, an event driven page renderer rather than tree oriented one.
I do almost all of my development working using XSLT with stylesheets.
I think reading about stuff like this is great, and I do agree with the author that if you not very careful you can easly build or use and system that is too resource intensive.
The only thing I don’t like about the solution the author presents is that it is not XSL. One of the wonderful things about working with XSL is that it is platform independent. I have converted some of my applications from java to .NET without having to change one line of Presentation layer code. As long as the middleware spits out the same XML I can re-use my stylesheets without any changes.
Also XSL template (visual components) can be built that are langauge. My .NET friends build a component and I can use it with no changes, and visversa.
But I still say to the author….Nice job.