Information on web-inf folder in Eclipse

WEB-INF

   /WEB-INF/web.xml
        Your web application configuration file, which is an XML file that describes servlet and other application component configuration and naming rules;


   /WEB-INF/classes/
        This directory contains All class files used by the site, including servlet classes and non-servlet classes, cannot be included in .jar files.
        The site's class storage rules should be implemented in accordance with Java's packaging rules. For example: There is a class named com.mycompany.mypackage.MyServlet, you should deploy it as follows: /WEB-INF/classes/com /mycompany/mypackage/MyServlet.class ;
        place the classes (JavaBean and Servlet) according to the package name structure )  


   /WEB-INF/lib/
        stores various JAR files required by web applications, and places jar files that are only required in this application, such as database driver jar files


   /WEB-INF/src/
        src=source source code directory, according to the package Name structure to place each java file /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/
        tag file library stores customer-defined tag files. This directory is not necessarily tags. Users can name their own tag file library according to their own preferences and habits. When the user-defined tag file library name is used When the user uses the label file, the correct label file library path must be declared. For example: when the name of the custom tag file library is simpleTags, when using the tag file in the simpleTags directory, it must be declared in the jsp file header as: <%@ taglib prefix="tags" tagdir="/WEB-INF /simpleTags "%>;


   /WEB-INF/jsp/
        The file storage location of Jsp 1.2 and below. There is no specific declaration for changing the directory. Similarly, users can name them according to their own preferences and habits. This directory mainly stores files of versions below Jsp 1.2, in order to distinguish Jsp 2.

   /WEB-INF/jsp2/
        Compared with the jsp file directory, this directory mainly stores files of versions below Jsp 2.0. Of course, it can also be named arbitrarily. Also, to distinguish the file directory of versions below Jsp 1.2, it is usually named as jsp2.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326442399&siteId=291194637