Chapter 32. XML Syntax for JSP

In this chapter

In Chapter 24, "Creating an XML Application," you learned how to create an XML page from a Java Server Page. The JSP specification includes an interesting syntax alternative to the typical <% %> tags you have been using. This alternate syntax allows you to create Java Server Pages that are XML documents to begin with. That is, they are already XML documents before they are parsed.

Although that might sound interesting, when you see the XML syntax, you'll realize that it's not an efficient way to create Java Server Pages. The syntax is cumbersome and difficult to read. The thing to remember is, although the syntax is cumbersome for ...

Get Special Edition Using Java™ Server Pages and Servlets 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.