title: include-prelude not being picked from web.xml using Spring 4
body: <p>Hi I'm putting together a fairly basic app using spring 4 MVC.  I am using config java classes rather than xml config.  I'm pretty new to this but all is slowly moving forward well.  I have hit a problem though in that I wanted to include a header into all the jsp page views.</p>
  
  <p>So I have included the include-prelude into my web.xml file</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee
                           http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
       version="3.1"&gt;
  
  &lt;display-name&gt;Web Application&lt;/display-name&gt;
  &lt;jsp-config&gt;
      &lt;jsp-property-group&gt;
          &lt;url-pattern&gt;*.jsp&lt;/url-pattern&gt;
          &lt;include-prelude&gt;/WEB-INF/views/include/header.jspf&lt;/include-prelude&gt;        &lt;/jsp-property-group&gt;
  &lt;/jsp-config&gt;
  &lt;/web-app&gt;
  </code></pre>
  
  <p>This is working if I add a dummy jsp file into the webapp folder (I'm using maven and eclipse) and access it directly.  However it is not working for the JSP's accessed via spring MVC.  It is working in a similar application I inherited which has the spring bootstrap config in xml files rather than java classes.  I won't have millions of pages so I guess I can use a jsp:include but...</p>
  
  <p>Can anyone tell me how I should go about getting the header.jspf picked up ?  Ideally I'd like to keep the config in java classes but perhaps I have to use the xml bootstrapping ?  </p>
  
  <p>Also as a supplementary question which is not really what I'm asking so please ignore if it's against all the rules (!) when I've googled this a bit I keep reading that JSP's are no longer the way to go for views.  I'm writing a fairly basic intranet forms app (I've recently switched from microsoft technologies so apologies if you don't like that terminology!).  Do you think I should be using somethign other than JSPs &amp; jspf's</p>
  
  <p>Thanks  </p>