Summary

In this chapter we covered the server-side processing of XML using Java servlets. The chapter focused the topics around a real-world sample Web site that accepted, stored, and displayed aphorisms. The chapter began by describing the basic components and API of servlets. The life cycle of a servlet is init, service, and destroy. This section also discussed the relationship between the GenericServlet abstract class and the HttpServlet class. The section ended with a walkthrough of the JavaServer Web Development Kit (JSWDK) that is used to run the examples in the chapter.

The next section examined the input side of the sample Web site. Specifically, how to generate and store XML from HTML form data. The ProcessAphorismForm servlet received ...

Get XML Development with Java™ 2 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.