Tomcat web.xml jsp-config for including header and footer

In my JavaEE app running on Tomcat, I have some pages that can be access by anybody (for login, register, …) in the root of app-context and some ones where you have to be logged in. All those pages are mapped to “APP-CONTEXT”/app/*.
What I want is to include header and footer automatically for all pages under /app.
I’ve read it was possible by setting include-prelude/coda under web.xml file but it doesn’t work for me…

Here is my web.xml

<?xml version="1.0" encoding="UTF-8"?>
<web-app version="3.1" xmlns="" xmlns:xsi="" xsi:schemaLocation="">

I have no error in tomcat’s log, the path to header and footer is valid but nothing appear on the screen…
Also, is it possible to match specific ext under a folder using url-pattern (like /app/*.jsp) ?