Chapter One Dynamic Web Development Foundation
The Tomcat Directory Authority/bin a script file for starting and stopping Tomcat under various platforms/conf the various configuration files that hold the Tomcat server/lib the various jar files required to store the Tomcat server/logs Log files for Tomcat/temp the Tomcat runtime is used to hold temporary files/webapps web App publish directory/work Tomcat stores the servlet generated by JSP in this directory tomcat Configuration of the port number (1) locate its subdirectory under the Tomcat Directory Authority conf (2) Open the Servlet.xml file in the Conf directory (3) in the open file, locate the <Connector> node, Then modify the port number (4) Save the directory structure of the Web App/web app's root directory, all files in that directory are accessible to clients, including JSP, Html/web-inf store all the resources used by the application, the directory and its subdirectories Not accessible to clients, including Web. XML (Deployment descriptor)/web-inf/classes Store app uses all class files/web-inf/lib store jar files used by WEB apps during Tomcat's run, Tomcat The class loader first loads the class file under the classes directory and then loads the classes under the Lib directory. It is important to note that if a class with the same name exists in both directories, the class under the classes directory has precedence. Configure the Start Access page <welocme-file-list> <welcome-file>index.xml</welcome-file> </welocme-file-list> JSP page Element composition
Review Jsp/servlet Technology