The location and role of the Web-inf folder

Source: Internet
Author: User

Web-inf Introduction

The Web-inf folder under the TomCat server is a very secure file that cannot be accessed directly from the page, and must be mapped to the files to be accessed through the Web. xml file.

Web-inf folder in addition to Web. XML, there is a classes folder, to place *.class files, these *.class files are written by the Site designer class library, to achieve the JSP page foreground art and background service separation, making the site maintenance is very convenient. The Web. xml file is a description of the site deployment and is important for the deployment of the Web site.

Web-inf is used to store server-side profile information and class files that run on the server, and things underneath it do not allow direct client access.

The existence of Web-inf and its role in the Lib and classes directories are defined by the master gate.

Web-inf does not allow client access to be used to place the configuration file: The class file is placed under the Lib or Classes folder under Web-inf ... Web-inf is a site configuration file directory ... The logo of a Web application is to have this directory ...

In general, if you want to provide features such as template download, put your template under Web-inf, so as to prevent direct access to the template

The location and role of the Web-inf folder

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.