Tomcat settings default startup Project and Java Web project Settings default startup page __java

Source: Internet
Author: User
Tags java web
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>


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.