O'Reilly logo

Web Technology: Theory and Practice by M. Srinivasan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required