So... when you write a JSP in normal JSP syntax (a
JSP Page) is processed by an app server -- it's first translated into XML (the XML view), then into a
Java Servlet, and finally compiled into a .class
The JSP Spec also gives the writer the option of writing their JSP page in XML syntax (a
JSP Document). It too is then processed into an XML view, then into a Servlet and compiled into a .class
The advantages the spec lists for writing JSP Documents are (Servlet 2.3 spec section 5.1):
JSP documents can be passed directly to teh JSP container; this will become more important as more and more content is authored as XML.The XML view of a JSP page can be used for validating the JSP page against some description of the set of valid pagesJSP documents can be manipulated by XML-aware tools.A JSP document can be generated from a textual representation by applying an XML transformation, like XSLT.A JSP document can be generated automatically, say by serializing some object.You're bored. ok.... so the last one isn't really in the spec...
Also, check
this thread for more info regarding JSP Documents and XML View.
[ May 06, 2002: Message edited by: Jessica Sant ]