Seperating Servlets from HTML

This article at Netscape's DevEdge (or whatever they're called now) is titled Servlet Programming for Teams but it's really about a technique that removes all that awful servlet code that just basically writes out raw HTML through the Writer. The solution, which is to output XML and transform it with XSL, isn't rocket science but it's novel in it's approach which is to create a Servlet class to inherit from which does all the XSL post processing automatically. The whole approach has to better from a maintainability point of view because it doesn't require you to recompile the servlet just to adjust the HTML output. Worth reading.

Permalink: http://blog.iandavis.com/1999/10/seperating-servlets-from-html/


Other posts tagged as web-development

Earlier Posts