Improve your coding skills from beginner to expert with the largest online Java e-learning platform

Java Web Development Second Edition: Module 2

with Ajax and Websockets
  • In this second module of Java Web Development, Matt Greencroft takes you through the fundamental building blocks of MVC style web application construction.
  • How to write clean and logic-free JSP.
  • What are Filters?
  • Featuring extensive information on Ajax, Asynchronous Servlets and Websockets.


This course follows on from module 1.

Contents - This course will take around 3 days to complete, together with practical work.


Having problems? check the errata for this course.


Servlet Annotations

22m 9s
We can now write Java Web Applications without writing a web.xml.


Servlet Filters

22m 37s
Filters can be used to intercept the request/response cycle. Matt shows a great working example of enhancing a search routine.


JSP Introduction

16m 24s
The servlets we have written so far are not production standard. JSPs are an improvement and we introduce them here.


Further JSP

23m 22s
We now start to build out our web app, with headers, footers and dynamic content. As Matt warns, this is all necessary work but we're not yet at a production standard - that will come in further chapters!



34m 23s
Servlets and JSPs need to be carefully architected. MVC is a classic pattern in web applications where we divide the Java code from the presentation code. Many modern frameworks such as Spring support this approach.



33m 38s
Although the MVC has cleaned things up, the JSP still looks horrible. With the simple JSTL, we can make our JSP page look much more like a standard HTML file.



46m 49s
How to include an Ajax front end into a Java Web App. Matt explains what Ajax is and we implement a "partial page update".


Asynchronous Servlets

37m 26s
These were added in servlet spec 3.0, and allows a Comet/Reverse Ajax approach. This is useful information to know, but Matt concludes that for most applications, asynch servlets aren't very usable. Websockets - coming next - are generally a richer and more flexible approach.



37m 57s
Websockets are a new approach to asynchronous communication between client and server. Matt builds a websocket version of the previous work, from scratch.


Websockets Part 2

14m 25s
Websockets are "full duplux", meaning that both the client and the server can push data to the other. We'll complete the kitchen manager application to close the course!

Let the Course Come to You

About Us Pricing Frequently Asked Questions Contact Privacy T&Cs Affiliates and Resellers
Facebook Twitter YouTube LinkedIn