image

CHAPTER3

Dynamic Web Pages: JSP

A JavaServer Page (JSP) is a Java servlet turned inside out. In other words, a JSP is equivalent to a servlet in the sense that almost everything you can do in a Java servlet you can also do in a JSP; it is how you do it that is different.

In the last chapter on the Java Servlet API, you learned that a Java servlet is a Java component that analyzes an HTTP request and writes out response content either to an OutputStream or to a Writer. As you write more Java servlets, you will observe that much of the content that you write to the response object is static, and only a relatively small amount of the code is dynamically ...

Get Java EE 7: The Big Picture 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.