Java EE: Programming Servlets

Java servlets are the first step to understanding web programming using Java, and this course will show you the basics of servlet architecture and applying filters to more complex issues like debugging and deployment.
Course info
Rating
(132)
Level
Beginner
Updated
Jul 6, 2016
Duration
4h 26m
Table of contents
Course Overview
Introduction
Building and Deploying Your First Servlet
Working with Form and Query String Data
Handling HTTP Requests and Responses
Intercepting HTTP Request with Filters
Handling Exceptions in Servlets
Tracking Session Data
Receiving and Processing File Uploads
Packaging Servlets for Deployment
Debugging Servlets
Globalizing Servlets
Providing Servlet Metadata Using Annotations
Understanding Asynchronous Servlet Processing
Description
Course info
Rating
(132)
Level
Beginner
Updated
Jul 6, 2016
Duration
4h 26m
Description

Web application development can be made easier by using Java servlets. In this course, Java EE: Programming Servlets, you will begin with a complet overview of servlet architecture and lifecycle. First, you'll see the configuration of a Tomcat webserver in Eclipse and you'll learn how to read the request and response headers. Next, you'll learn how filters are applied to servlets and see many details about tracking session data, web annotations, and globalizing servlets. Finally, you'll go over asynchronous programming in servlets, debugging, packing, and deployment of servlets. By the end of this course, you will have a much more complete understanding of how web development using Java servlets works. Software required: Tomcat and Eclipse.

About the author
About the author

Sekhar Srinivasan is a Microsoft Certified Trainer with 19 Years experience.

More from the author
Java EE: Java Server Pages
Beginner
3h 44m
Feb 10, 2017
Section Introduction Transcripts
Section Introduction Transcripts

Course Overview
Hi everyone! My name is Sekhar Srinivas. Welcome to my course, Java Enterprise Edition: Programming Servlets. I'm a corporate trainer and a senior architect at LS Solutions Pvt. Ltd. Servlets is a Java programming language class that is used to extend the capabilities of servers that host applications accessed by means of request/response programming model. This course provides a complete idea on programming Servlets for the beginners. Some of the major topics that will be covered include handling Servlets filters, tracking session data, globalizing Servlets for supporting multiple languages, web annotations, asynchronous Servlet programming. By the end of this course, you will have a solid foundation to get started with web development using Servlets. Before learning this course, you need to be familiar with Core-Java, and a knowledge of JDBC is optional. I hope you will join on this journey to learn web development using Java Enterprise Edition: Programming Servlets course at Pluralsight.

Handling HTTP Requests and Responses
Hi! This is Sekhar Srinivasan for Pluralsight. In this module, we shall understand the importance of HTTP request headers, HTTP response headers, and HTTP status code. We shall also observe how to use them practically within a Servlet application. Now let us get started.

Handling Exceptions in Servlets
Hi! This is Sekhar Srinivasan for Pluralsight. In this module, we shall understand one of the important features to be known in Servlet, that is, handling exceptions in Servlets. Whenever a Servlet throws an exception, the web container searches the configurations in web. xml that use the exception type element for a match with the thrown exception type. We need to use error-page elements in web. xml to specify the invocation of Servlet in response to certain exceptions or HTTP status code. Let us understand how to configure web. xml for handling the exceptions in the next clip.

Receiving and Processing File Uploads
Hi! This is Sekhar Srinivasan for Pluralsight. In this module, we shall understand how to upload a file to the server, and also we shall understand how to process that request and receive the file uploads using the Servlet. One important point that we have to remember is before Java EE6, applications usually have to use an external library like Apache's Commons File Upload to handle file upload functionality. Fortunately, developers don't have to depend on any external library anymore. Java Enterprise Edition 6 provides built-in File Upload API. To use, we need our runtime as Java EE6 with Servlet 3. 0, server should be Apache Tomcat 7. 0 or above versions. Now let's get started.

Packaging Servlets for Deployment
Hi! This is Sekhar Srinivasan for Pluralsight. Until now in the previous modules, we have understood how to create a Servlet page, access the query string and form data from the Servlets, how to add filters to the Servlet, and also we have discussed about tracking the session data. With all this information, we are in the position to create a basic Servlet application. But once the application is created, then we need to deploy that application. So in this module, we shall understand how to create Servlets in packages and deploy the package Servlets.

Globalizing Servlets
Hi! This is Sekhar Srinivasan for Pluralsight. In this module, we shall understand how to globalize Servlets. This concept is popularly called as internationalizing and localizing web applications by many developers. The process of preparing an application to support more than one language or culture and data format is called internationalization. Localization is the process of adapting an internationalized application to support a specific region or locale. This module is quite important because when we develop a web application with the support of multiple languages, then the reach of the application will be more. And in this module, we shall understand how to detect the locale of the client system. We shall understand the language settings, how to work with currency and date formats, and also we shall develop a complete application to understand globalizing Servlets. Now let us get started.

Providing Servlet Metadata Using Annotations
Hi. This is Sekhar Srinivasan for Pluralsight. In this module, we shall understand one of the new featured annotations introduced in Servlet 3 for providing the metadata information for the Servlet. We have been using this feature from the very first Servlet page in our course, but we haven't discussed it in detail, and I informed you that I will explain about the annotations in a later module of our course. Now let us understand some key points about providing Servlet metadata using annotations. Servlet API 3 has introduced annotations. The package javax. servlet. annotation provides the annotation types that can be used for annotating a Servlet class. The annotations can replace equivalent XML configuration present in the web deployment descriptor file, web. xml. Annotations help in developing Servlet applications easily. Now in this module, we shall understand providing Servlet metadata using WebServlet, WebInitParams, and WebFilter annotations by comparing with the XML configuration required at web deployment descriptor file. Now let us get started.

Understanding Asynchronous Servlet Processing
Hi! This is Sekhar Srinivasan for Pluralsight. We are currently in the last module in the journey of learning programming Servlets course. In this module, we shall understand one of the powerful features introduced in Servlets 3, that is asynchronous Servlet processing. First, we shall understand what are the limitations in traditional Servlet processing, and then we shall understand asynchronous Servlet processing. And, finally, we shall understand this concept practically with the support of a demo. Now let us get started.