Using XML with JSP Technology
HTTP/HTML &| XML
The JavaServer Pages technology is an ideal way to describe processing of XML input and
output. Simple XML generation can be done by just writing the XML as static template
portions within the JSP page. Dynamic generation will be done through JavaBeans
components, Enterprise JavaBeans components, or via custom actions that generate XML.
Similarly, input XML can be received from POST or QUERY arguments and then sent
directly to JavaBeans components, Enterprise JavaBeans components, or custom actions, or
manipulated via the scripting.
There are two attributes of the JSP technology that make it specially suited for describing
XML processing. One is that XML fragments can be described directly in the JSP page either
as templates for input into some XML consuming component, or as templates for output to
be extended with some other XML fragments. Another attribute is that the tag extension
mechanism enables the creation of specific actions and directives that are targeted at useful
XML manipulation operations.
Future versions of the JSP specification may include several standard actions that will
support XML manipulation, including the transformation of the XML produced by the given
JSP page using XTL/XSL.
JavaServer Pages 1.1 Specification November 30, 1999