News Web (app's name)
|
|--static resources and JSP files can be placed directly in the directory of the Web application, the browser can be directly accessed (HTML/JSP/CSS)
|--web-inf can not, but it is best to have, once there, the structure needs to be complete, placed in the Web-inf directory of all Resources browser has no way to access
|| --classes Dynamic Web Resource runtime's class file storage directory
|| --lib Dynamic Web resource runtime-dependent jar packages
|| --web.xml the configuration file for the entire Web application, configuring the map/filter listener configuration for the home page/servlet depends on this file
Xml
<?xml version= "1.0" encoding= "Iso-8859-1"?>
<web-app xmlns= "Http://java.sun.com/xml/ns/javaee"
Xmlns:xsi= "Http://www.w3.org/2001/XMLSchema-instance"
xsi:schemalocation= "Http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
version= "2.5" >
<welcome-file-list>
<welcome-file>1.html</welcome-file>
</welcome-file-list>
</web-app>
After configuring the Welcome-file-list, you can display the content without entering which file
For example: http://localhost/
Web application directory Structure