XML technologies / XSLT / Java and XSLT / Servlet basics and XSLT
(Excerpt from “Java und XSLT” by Eric M. Burke)
XSLT and servlets fit naturally together. Java is platform-independent, XML provides portable data, and XSLT transforms it without burdening servlets with HTML code. Different output formats support portability across browsers and devices. Separating data, presentation and programming logic allows changes to a website’s look and feel without touching Java code. This makes web applications easy to customize and sell: customers change page layouts and logos in XSLT without access to the internal programming logic.
Configuration is often the first challenge. Web applications are generally harder to get running than client applications because more pieces must fit together. A Swing application can consist of one class with a main( ) method. A web application needs a servlet, an XML application descriptor, a WAR archive and a servlet container. Errors may give only messages like “HTTP 404-Datei nicht gefunden”, which are not very helpful.
This chapter explains servlet syntax, emphasizing configuration and deployment. A simple web application then demonstrates integration of XSLT stylesheets and XML. After completing the chapter, you should be ready for the book’s more complex examples.
Copyright © 2002 O'Reilly Verlag GmbH & Co. KG
You may print the online version for your private use.
Otherwise, this chapter from “Java und XSLT” is subject to the same conditions as the bound edition. The work, including all its parts, is protected by copyright. All rights reserved, including reproduction, translation, microfilming, and storage and processing in electronic systems.
O’Reilly Verlag GmbH & Co. KG, Balthasarstraße 81, 50670 Köln, kommentar(at)oreilly.de
back to top