The problem is that section mapping my footer.jsp and header.jsp is red in IntelliJ Idea, though everything works well. also I understand that I should have for both mentioned files extension *.jspf, not jsp, but I have no idea how to make them in Idea. My web.xml is below, the strings between < jsp-config > and < /jsp-config > are all red and commented: "element is not allowed here"
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
version="3.0">
<session-config>
<session-timeout>
30
</session-timeout>
</session-config>
<jsp-config>
<jsp-property-group>
<description>header and footer settings</description>
<url-pattern>/WEB-INF/views/*</url-pattern>
<url-pattern>/index.jsp</url-pattern>
<include-prelude>/WEB-INF/jspf/header.jsp</include-prelude>
<include-coda>/WEB-INF/jspf/footer.jsp</include-coda>
</jsp-property-group>
</jsp-config>
</web-app>