Tomcat set default startup Project and Java Web project settings default startup page

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.