Skip to main content

Servlets and JavaServer Pages

  • Chapter
  • First Online:
Jakarta EE Recipes
  • 687 Accesses

Abstract

Java servlets were the first technology for producing dynamic Java web applications. Sun Microsystems released the first Java Servlet specification in 1997. Since then it has undergone tremendous change, making it more powerful and easing development more with each release. Servlets are at the base of web content for many Java EE applications. Servlets are Java classes that conform to the Java Servlet API, which allows a Java class to respond to requests. Although servlets can respond to any type of request, they are most commonly written to respond to web-based requests. A servlet must be deployed to a Java servlet container, be it a full stack application server or a micro container, in order to become usable. The Servlet API provides a number of objects that are used to enable the functionality of a servlet within a web container. Such objects include the request and response objects, pageContext, and a great deal of others, and when these objects are used properly, they enable a Java servlet to perform just about any task a web-based application needs to do.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 49.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 64.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2020 Josh Juneau

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Juneau, J. (2020). Servlets and JavaServer Pages. In: Jakarta EE Recipes. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-5587-2_1

Download citation

Publish with us

Policies and ethics