Web application directory Structure

Source: Internet
Author: User


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

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.