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


in javaee app running on tomcat, have pages can access (for login, register, ...) in root of app-context , ones have logged in. pages mapped "app-context"/app/*. want include header , footer automatically pages under /app. i've read possible setting include-prelude/coda under web.xml file doesn't work me...

here web.xml

<?xml version="1.0" encoding="utf-8"?> <web-app version="3.1" 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">     <session-config>         <session-timeout>30</session-timeout>     </session-config>     <welcome-file-list>         <welcome-file>connexion</welcome-file>     </welcome-file-list>     <jsp-config>         <jsp-property-group>             <url-pattern>*.jsp</url-pattern>             <url-pattern>*.jspf</url-pattern>             <el-ignored>false</el-ignored>             <include-prelude>/web-inf/jspf/taglibs.jspf</include-prelude>         </jsp-property-group>         <jsp-property-group>             <url-pattern>/app/*</url-pattern>             <include-prelude>/web-inf/jspf/header.jspf</include-prelude>             <include-coda>/web-inf/jspf/footer.jspf</include-coda>         </jsp-property-group>     </jsp-config> </web-app> 

i have no error in tomcat's log, path header , footer valid nothing appear on screen... also, possible match specific ext under folder using url-pattern (like /app/*.jsp) ?


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -