Java Web Webroot and webcontent directories

Source: Internet
Author: User
Tags java web

Webroot and webcontent are the root folders of the program, no essential differences, the two are common and different points:

Common: There is a Web-inf folder, the next file is not directly accessible;

Web-inf is a secure directory, so-called security, that is, the user client can not access, only the server-side access. If you want to access it directly in the page, you need to map the file you want to access via Web. Xml.

Web-inf in addition to Web. XML, there is also a classes folder that places *.class files, class libraries,

It also has the Lib directory;

Different points:

Webroot is the Web project structure in MyEclipse, which adds support for some open source frameworks (struts,hibernate, etc.), meaning that Web project is a project that has been expanded by MyEclipse;

Web project has the characteristics of Dynamic Web project, and has some easy-to-develop integration functions;

WebContent is the Dynamic Web project structure under eclipse;

Both changes, please see the Pit series.

When a Web project is published to Tomcat, the build project in Eclipse is the WebContent directory

The name of the project directory generated in MyEclipse is called Webroot, so if you import the MyEclipse project into eclipse, what modifications do you need to make to deploy the project to Tomcat? Just one of the following

1. Right click on Project--attribute--add

Add Webroot directory, delete webcontent

Java Web Webroot and webcontent directories

Related Article

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.