Why use XML at all when JSP can be used?
- XML was designed to describe and store data, not to display
it.
- In order to display data, an XSL program must be run on an XML
document to transform the data into HTML code (or mostly any other
language).
- So, by using an XML document in accordance with JSP pages, another
level of abstraction is created, leading to a program with a more
component-base design. This can make web-based applications
faster and easier to develop.
- XML can represent the data.
- XSL can represent the presentation logic.
- JSP can represent the business logic.