O'Reilly logo

Sams Teach Yourself JavaServer Pages™ in 21 Days by Steven Holzner

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

Chapter 12. Creating Servlets

Welcome to Day 12! Today you'll start learning how to create and work with Java servlets. As you may recall from Day 1, JSP was introduced to make working with servlets easier—JSP itself is based on servlets. However, servlets can also do things that JSP pages can't. Today you'll see these topics:

  • Using the <jsp:plugin> element

  • Creating and running servlets

  • Sending data to and from a servlet

  • Understanding the servlet life cycle

  • Creating Web applications using servlets

  • Getting servlet initialization parameters

Servlets are Java classes, and today you'll learn how to make those classes accessible to Tomcat, and therefore, to Web pages.

In fact, today's work starts not with servlets, but with a new JSP element, <jsp:plugin> ...

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