From the course: Java EE 8 Essential Training

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Building dynamic responses

Building dynamic responses - Java EE Tutorial

From the course: Java EE 8 Essential Training

Start my 1-month free trial

Building dynamic responses

- [Instructor] When processing requests, servlets respond with dynamic content, meaning the response content may be different for each request. This contrasts with pure web servers that host static content that never changes. Let's create some dynamic content from our catalog servlet within this lesson. To help us out, I've positioned three files within our project. I'm going to have to do this throughout the course in order to keep us focused on Java EE. When I do, I'll be sure to let you know and you can find the files within the exercise files for the lesson. The first file I added was a catalog class and this class contains a map which basically holds the entire product catalog for the H+ sports store. You'll notice that the maps values are of type catalog item which is the next class I added. This is a simple POJO that represents an item in the catalog and it has three fields. Name, manufacturer and SKU. And…

Contents