image

CHAPTER

4

Servlets, Filters, and Listeners

In the previous chapter, we created a basic web application using NetBeans and discussed the structure and packaging of a Java EE application. In this chapter, we’ll look at Servlets, a Java EE technology that has been integral to Java EE application building from day one. We’ll also look at the key files for Servlet-based Java EE applications, sharing data, session management, filters, and listeners. Finally, we’ll deploy applications using these features onto the Oracle Java Cloud (OJC).

Servlets

Servlets have been around since the late 1990s and, amazingly enough, continue to be a key foundation technology ...

Get Java EE Applications on Oracle Java Cloud: 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.