This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
From the JSP 1.2 specification: Section 5: JSP Documents "This chapter defines an XML syntax for JSP pages and the interpretation of the pages written in this syntax. We use the term JSP document to refer to a JSP page in XML syntax. This chapter also defines a mapping between any JSP page and an XML description of the page, its XML view. The XML view is defined for JSP pages writtin in JSP and in XML syntax." 1st thing you need to know about JSPs to understand is the process involved in running a JSP. the JSP page is first translated into XML, then from XML to a JavaServlet and then compiled into a .class. That translated XML step is the XML view. You also have the option of writing your JSP page in the XML syntax. This would make it a JSP document. Here's where the real question gets answered: "JSP.5.3.1. JSP Documents The XML view of a JSP page written in XML syntax [a JSP Document] is very close to the original JSP page. Only two transformations are performed: * Expand all include directives into the JSP fragments they include. * If the JSP container supports the jsp:id attribute, add the attribute." Often times an app server will give you the option of saving the generated .xml, .java and .class files from a JSP. Play with it a bit and see what the differences are in the JSP Document vs XML View. Hope that helps!!