Java Web Development Second Edition: Module 2

Try for free!

Subscribe and stream all our courses
from just USD19.00 per month
Start my free trial

Java Web Development Second Edition: Module 2

with Ajax and Websockets

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

  • 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

Having problems? check the errata

Servlet Annotations 22m 9s

We can now write Java Web Applications without writing a web.xml.

Preview

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.

Watch

JSP Introduction 16m 24s

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

Watch

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!

Watch

MVC 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.

Watch

JSTL 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.

Watch

Ajax 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".

Watch

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.

Watch

Websockets 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.

Watch

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!

Watch
Copyright ©2024 VirtualPairProgrammers.com