Java Specialization period - Lecture 3

Java and the Web, pt 2

Before we start...

Assignment check: have you met any trouble in making the previous exercise?

Java and the web

We saw the last time how you could write a JSP, which aims at presenting the result of a treatment

We will now focus on the Servlet side, which is pure Java processing

Servlets

Servlets are like JSP... in fact JSP are Servlets where HTML output is favored.

First advice

Servlets (2)

Differences between 2.5 and 3.0 servlets implementation

Example of a Web.xml, and explanation of the mapping concept

Servlets (3)

Make a servlet and call it from a JSP: