Tomcat sets the default startup Project
Tomcat sets the default startup project, as its name implies, to allow access to our projects by entering ip:8080 in the browser's address bar. Here's how:
1. Open the installation root directory of Tomcat, locate the Tomcat 6.0\conf\server.xml, open the file, locate the <Host> node, add <context path= "docbase=" to the node. /webapps/webtest "debug=" 0 "reloadable=" true "/>.
2. Then put the WebTest project into the Tomcat root directory and delete or rename the root folder in the WebApps folder to another name.
3. Launch Tomcat, enter ip:8080 in the browser, and you will be able to access 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 Java Web project Settings default startup page is configured through the. 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>
Tomcat set default startup Project and Java Web project settings default startup page