Official web site because of the use of <!--#include file= "include/header.html"--label, in the case of copying the code to the local situation, the page can not be long normal display, The multi-party verification was found to be due to the fact that the include could not be interpreted normally, as opening could have a performance impact, and the following would be divided into Tomcat and IIS for separate descriptions:
1.tomcat
(1) Find the Tomcat configuration file location, locate Context.xml and Web. XML, and make a backup;
(2) Open the Context.xml file and add the attribute privileged= "true" to the context parent tag, as follows:
<ContextPrivileged= "true"> <!--Default set of monitored resources - <Watchedresource>Web-inf/web.xml</Watchedresource> <!--uncomment this to disable session persistence across Tomcat restarts - <!--<manager pathname= ""/> - <!--uncomment this to enable Comet connection tacking (provides events in session expiration as well as WebApp Li Fecycle) - <!--<valve classname= "Org.apache.catalina.valves.CometConnectionManagerValve"/> -</Context>
(3) Save the file;
(4) Open the Web. xml file;
(5) Locate the built in Servlet mappings, and uncomment the HTML section at servlet-mapping as shown in:
(6) Find the servlet configuration section, find the code part, dismiss the comment;
(7) Save the file, restart the Tomcat server;
2.IIS
(1) Open IIS;
(2) Click on the site you want to set up;
(3) Select "Process application Mapping";
(4) Click Add Module Map, fill in the contents as shown;
(5) Restart II
Web server explanation Html-include