Tomcat Settings default startup Project
Tomcat sets the default startup project, as the name suggests, so that you can access our project by typing ip:8080 in the browser's address bar. The specific actions are as follows:
1. Open Tomcat's installation root directory, find Tomcat 6.0\conf\server.xml, open the file, locate <Host> node, add <context path= "docbase=" to the node. /webtest "debug=" 0 "reloadable=" true "/>.
2. Put the WebTest project under the Tomcat root directory and delete or rename the root folder in the WebApps folder to another name.
3, start Tomcat, in the browser input ip:8080, you can access to your project.
Note the value of the Docbase property in the:<context> node is the absolute path to the Web project.
Web project Settings default startup page
The default startup page for Java Web engineering settings is configured by the Web.xml file. The specific configuration is as follows:
<servlet>
<servlet-name>StartServlet</servlet-name>
<servlet-class>nvmp. Videoserver.implement.startservlet</servlet-class>
<load-on-startup>0</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>StartServlet</servlet-name>
<url-pattern>/StartServlet</url-pattern>
</servlet-mapping>
< welcome-file-list>
<welcome-file>login.jsp</welcome-file>
</welcome-file-list>