6.2 WHY JSP?
If Servlets do their job well enough, what is the need for another piece of technology like JSP? How is it warranted? Let's examine some aspects of the web application written with just Servlets, that is, without JSP.
- It is difficult to embed HTML code using print statements like writeln, within Servlets. Not only it is tedious to write, it is also difficult to debug.
- It is also difficult to change the business logic, should the business model change.
- Writing HTML in the above style also has a drawback that standard HTML tools that are normally available to the programmer as aids to productivity, will not be useful. These tools include the likes of an IDE, an HTML editor or the HTML Validator.
- If it is required to produce a different ...