| 1. |
How Do I Can Change The Default Home Page Loaded By Tomcat? |
|
Answer» We can EASILY override home page via adding welcome-file-list in application $TOMCAT_HOME/webapps//WEB-INF /web.xml file or by editing in container $TOMCAT_HOME/conf/web.xml In $TOMCAT_HOME/conf/web.xml, it may look like this: index.html index.htm index.jsp Request URI REFERS to a directory, the default servlet looks for a "welcome file" within that directory in FOLLOWING order: index.html, index.htm and index.jsp If none of these FILES are found, server renders 404 ERROR. We can easily override home page via adding welcome-file-list in application $TOMCAT_HOME/webapps//WEB-INF /web.xml file or by editing in container $TOMCAT_HOME/conf/web.xml In $TOMCAT_HOME/conf/web.xml, it may look like this: index.html index.htm index.jsp Request URI refers to a directory, the default servlet looks for a "welcome file" within that directory in following order: index.html, index.htm and index.jsp If none of these files are found, server renders 404 error. |
|