Developing Servlets with JavaServer Pages

JavaServer Pages (JSP), like Microsoft Active Server Pages (ASP), are a way to combine HTML and server-side function calls so that Web application development can more easily separate presentation logic from core application logic. Generally speaking, JSP isn't so much a technology to optimize servlets as it is a methodology for application development. We'll address JSP-like technology briefly in this chapter, since so many developers use it and because its performance impact has long been debated.

Sample JSP Page

The best way to get started with JSP is to look at example code, compare it to the Web page it's associated with, and fill in the blanks. We need evidence of programmatic logic in our page, ...

Get Building Scalable and High-Performance Java™ Web Applications Using J2EE™ Technology now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.