Skip to Content
Java Servlet Programming, 2nd Edition
book

Java Servlet Programming, 2nd Edition

by Jason Hunter, William Crawford
April 2001
Intermediate to advanced
780 pages
23h 48m
English
O'Reilly Media, Inc.
Content preview from Java Servlet Programming, 2nd Edition

Chapter 18. JavaServer Pages

JavaServer Pages, commonly known as JSP, is a technology created by Sun Microsystems and closely tied to servlets. JSP was one of the first efforts to create a non-proprietary servlet-based content creation system. If you’ve been following servlets long, you may remember JSP was first announced in the spring of 1998—early enough in fact for the first edition of this book to include a short tutorial on JSP’s prerelease 0.91 version. Of course, JSP has changed significantly since then. In this section, we cover JSP 1.1, built on top of Servlet API 2.2.

As with servlets, Sun releases a JSP specification (created by an expert group consisting of outside vendors and individuals), and then third-party vendors compete on their implementation of that standard. Unlike the other technologies discussed that build on top of pure servlets, JSP is a specification, not a product, and requires support from the server in order to work. Most servlet container vendors are providing this support, including Tomcat where the JSP engine is named Jasper and JSP is a core component of Java 2, Enterprise Edition ( J2EE).

One stated purpose of JSP (quoting from the specification) is to “enable the separation of dynamic and static content.” Another purpose is to “enable the authoring of Web pages that create dynamic content easily but with maximum power and flexibility.” JSP accomplishes both of these goals fairly well. However, because of the “maximum power” inherent in the JSP ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Java Servlet Programming

Java Servlet Programming

Jason Hunter
Learning Java EE 8

Learning Java EE 8

Sebastian Daschner

Publisher Resources

ISBN: 0596000405Errata Page