Tomcat 5.0.xxweb-inferscript instructions

xiaoxiao2021-03-06  40

Tomcat 5.0.xx / web-inferscript instructions

JSP 2 issued some new rules and syntax, but most servers are still compatible with the previous version of the previous version of the JSP 2, Tomcat 5.0.xx is supported by JSP 2 and compatible JSP 2 previous versions, doing it in / web-infirectory The corresponding configuration, the specific method is as follows:

/Web-inf/web.xml Your web application configuration file, this is an XML file, which describes servlets and other application component configuration and naming rules;

The / web-inf / class / this directory contains all Class files for the site, including servlet class, and non-servlet class, which cannot be included in the .jar file. The storage rules for the class of the site should be implemented in accordance with Java packaging rules. For example: There is a class named com.mycompany.mypackage.myservlet, you should deploy: /Web-inf/classes/com/mycompany/mypackage/myservlet.class;

/ Web-inf / tags / label file library, stored customer-defined label files, this directory is not necessarily tags, users can name their label file library according to their preferences and habits, when using user-defined labels When the file name is named, the correct label file path must be declared when the user uses the label file. For example, when the custom label file name is simpleTags, when the label file in the SimpleTags directory must be declared in the JSP file header as: <% @ Taglib prefix = "tagdir =" / web-inf / simpleetags %>;

/ WEB-INF / JSP / JSP 1.2 The following version of the file storage location. There is no specific statement on the referendum, and the user can name it according to your preferences and habits. This directory is mainly stored by JSP 1.2 files. To distinguish JSP 2.0 files, usually use JSP naming, of course, you can also name JSPoldedition; ^ _ ^

/ Web-INF / JSP2 / compared to the JSP file directory, mainly stores files below the JSP 2.0 below, of course, it is also named, which is also a file directory that is different from JSP 1.2 below, usually named JSP2.

转载请注明原文地址:https://www.9cbs.com/read-63267.html

New Post(0)