Information about the web-INF and meta-INF folders in eclipse

Source: Internet
Author: User

WEB-INF

/WEB-INF/Web. xml
Your web applicationProgramConfiguration file, which is an XML file that describes Servlet and other application component configurations and naming rules;

/Web-INF/classes/
This directory contains all the class files used by the site, including servlet class and non-servlet class, which cannot be included in the. jar file.
The website class storage rules should be executed according to Java packaging rules. For example, if there is a class named com. mycompany. mypackage. myservlet, you should deploy it as follows:/WEB-INF/classes/COM/mycompany/mypackage/myservlet. Class;
Place classes by package name structure (JavaBean and Servlet)

/Web-INF/lib/
Store various jar files required by the web application, and place the jar files only required by the application, such as the database driver jar files.

/Web-INF/src/
Src = source code Directory, which contains various java files according to the package name Structure

/Web-INF/database. Properties
Database Configuration File
# Database. Properties
JDBC. Drivers = com. MySQL. JDBC. Driver
JDBC. url = JDBC: mysql: // localhost/ams2
JDBC. Username = root
JDBC. Password = sh2007ai

# Table define
Ams2.table. Dialogue = content_dialogue
Ams2.table. Expansion = content_expansion_sentence
Ams2.table. Vocabulary = content_vocabulary

/WEB-INF/tags/
The tag file library stores user-defined tag files. This directory is not necessarily tags. you can name your own Tag file library based on your preferences and habits, when the user-defined Tag file library name is used, the correct Tag file path must be declared when the user uses the Tag file. For example, when the user-defined Tag file library is named simpletags, the label file under the simpletags directory must be declared in the JSP file header: <% @ taglib prefix = "tags" tagdir = "/WEB-INF/simpletags" %>;

/WEB-INF/JSP/
The storage location of JSP files earlier than 1.2. There is no specific declaration for changing directories. Similarly, users can name directories based on their preferences and habits. This directory stores files of versions earlier than JSP 1.2. to distinguish JSP 2.0 files, you can also name them jspoldedition;

/WEB-INF/jsp2/
Compared with the JSP file directory, this directory mainly stores files of versions earlier than JSP 2.0. Of course, it can also be named as any one. It is also a file directory that distinguishes JSP versions earlier than JSP 1.2, it is usually named jsp2.

META-INF

It is equivalent to an information package. The files and directories in the directory are recognized and interpreted by the Java 2 platform and used to configure applications, extensions, class loaders, and services.
Manifest. MF file, which is automatically generated when jar is used for packaging

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.