Create the web.xml file

We need to add the milton filter to the WEB-INF/web.xml file for milton to load, and as part of setting that up we configure the hook which connects milton to our application.

So create the src/main/webapp/WEB-INF/web.xml file and then paste the following into it:

<?xml version="1.0" encoding="UTF-8"?>

<web-app xmlns=""



And your project should then look like this:

(Oops! the init-param for milton.configurator shouldnt be there. I'll correct the image later)