Webサイトの構造

1380 ワード

war構造
-war
  + META-INF/
  + WEB-INF/
   |  + classes/
   |  |  + ServletA.class
   |  |  + ServletB.class
   |  |  + ........
   |  |  
   |  + lib/
   |  |  + dom4j-1.4.1.jar
   |  |  + mail-1.4.1.jar
   |  |  + ........
   |  |  + 
   |  + web.xml
   + img/
   + css/
   + js/
   |
   + index.jsp

mavenが構築したweb構造
- project
  + pom.xml
  |
  + main/
  | + java/
  | | + ServletA.java
  | | + ServletB.java
  | | + ......
  | + resources/
  | | + config.properties
  | | + ......
  | + webapp/
  | | | + WEB-INF/
  | | | | + web.xml
  | | | + img/
  | | | + css/
  | | | + js/
  | | | |
  | | | + index.jsp
  + test/
  | + java/
  | + resources/  

ant構築のweb構造
app.home-----------+             --Web         
        +----build               ---   Ant     web         
        +----deploy              ---   Ant     web   WAR  
        +----doc                 ---   Ant     JavaDoc  
        +----lib                 ---     Jar  
        +----classes             --   Ant     .class  
        +----src                 ----  Java        
        +----webRoot(   web)---  web   jsp,html        css js  
             |
             |
             +----WEB-INF         ----  web.xml,struts.xml, TLD   

転載先:http://blog.csdn.net/xun_2008/article/details/7918189