The Aphorisms Web Site

Our real-world example to demonstrate the intersection of servlets and XML revolves around the storage (as XML) and display (as HTML) of aphorisms. An aphorism is a concise statement of truth or general principle. Figure 9.1 portrays the introduction page to the Aphorisms Web site.

Figure 9.1. The Aphorisms site.

While not a complete Web site in terms of features, this site will allow us to demonstrate the key ways that XML and servlets work together. From the main page, you can select to either add an aphorism to the site or view a table of all the current aphorisms. Adding an aphorism requires us to process a form using ...

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.