Directory structure standard for JSP web development environment

Source: Internet
Author: User
Tags resource root directory

Create a more complex directory hierarchy under the root directory. Simple applications can simply be placed in the root directory by these files.

The/web-inf/web.xml:web.xml file is used to configure the Web program, which is called the Web application Deployment descriptor (Web application Deployment desicription). He is an XML document that describes the attributes of the servlet and other Web application components and their initial parameters.

/web-inf/classes: This subdirectory is used to store all Java class files and related resource files, such as pictures, language information, and so on. These class files may be servlet, or they may be ordinary Java classes. It should be noted that if a class file belongs to a package (package), the entire directory hierarchy needs to be placed in the classes directory.

/web-inf/lib: This subdirectory is used to store all the library files required by the Web application, stored in a compressed. jar file format that contains the class files and corresponding resource files required by all Web applications. For example, an E-commerce application needs to access Oracle, and the JDBC driver library files that will be used are placed in the Lib directory.

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.