親測:
初步可以分為靜态部署和動态部署,靜态的意思是在tomcat啟動前部署,動态則是在啟動後在部署。
準備工作,下載下傳tomcat6,位址如下
http://apache.etoak.com/tomcat/tomcat-6/v6.0.29/bin/apache-tomcat-6.0.29.zip
然後解壓。
假設我們編譯好後的項目在檔案夾 abc 下面,以下是我的abc目錄下面的結構
abc
├─images
│ └─highslide
│ └─outlines
├─js
│ ├─fckeditor
│ │ └─editor
│ │ ├─css
│ │ │ ├─behaviors
│ │ │ └─images
│ │ ├─dialog
│ │ │ ├─common
│ │ │ │ └─images
│ │ │ ├─fck_about
│ │ │ │ └─sponsors
│ │ │ ├─fck_docprops
│ │ │ ├─fck_flash
│ │ │ ├─fck_image
│ │ │ ├─fck_link
│ │ │ ├─fck_select
│ │ │ ├─fck_spellerpages
│ │ │ │ └─spellerpages
│ │ │ │ └─server-scripts
│ │ │ └─fck_template
│ │ │ └─images
│ │ ├─dtd
│ │ ├─filemanager
│ │ │ └─browser
│ │ │ └─default
│ │ │ ├─images
│ │ │ │ └─icons
│ │ │ │ └─32
│ │ │ └─js
│ │ ├─images
│ │ │ └─smiley
│ │ │ └─msn
│ │ ├─js
│ │ ├─lang
│ │ ├─plugins
│ │ │ ├─autogrow
│ │ │ ├─bbcode
│ │ │ │ └─_sample
│ │ │ ├─dragresizetable
│ │ │ ├─placeholder
│ │ │ │ └─lang
│ │ │ ├─simplecommands
│ │ │ └─tablecommands
│ │ ├─skins
│ │ │ ├─default
│ │ │ │ └─images
│ │ │ ├─office2003
│ │ │ │ └─images
│ │ │ └─silver
│ │ │ └─images
│ │ └─wsc
│ ├─jquery
│ │ ├─external
│ │ └─ui
│ ├─My97DatePicker
│ │ ├─lang
│ │ └─skin
│ │ ├─default
│ │ └─whyGreen
│ ├─uploadify
│ └─validation
│ ├─lib
│ ├─src
│ └─styles
├─META-INF
├─pages
│ ├─admin
│ │ ├─applymgr
│ │ ├─cardmgr
│ │ ├─combomgr
│ │ ├─customermgr
│ │ ├─noticemgr
│ │ ├─orginfomgr
│ │ ├─orgusermgr
│ │ ├─resmgr
│ │ └─zerousermgr
│ ├─include
│ ├─pab
│ └─passport
├─style
│ └─jquery
└─WEB-INF
├─classes
│ ├─com
│ │ ├─yihaodian
│ │ │ └─central
│ │ │ └─ws
│ │ │ └─server
│ │ │ └─api
│ │ │ ├─dto
│ │ │ └─result
│ │ └─yiwang
│ │ ├─action
│ │ │ ├─customer
│ │ │ ├─passport
│ │ │ └─ws
│ │ ├─admin
│ │ │ ├─action
│ │ │ ├─dao
│ │ │ │ └─impl
│ │ │ ├─service
│ │ │ │ └─impl
│ │ │ └─util
│ │ ├─applet
│ │ ├─dao
│ │ │ └─customer
│ │ │ └─impl
│ │ ├─dto
│ │ ├─interceptor
│ │ ├─model
│ │ ├─pab
│ │ │ ├─action
│ │ │ │ ├─backend
│ │ │ │ └─front
│ │ │ ├─dao
│ │ │ │ └─impl
│ │ │ ├─model
│ │ │ ├─service
│ │ │ │ └─impl
│ │ │ └─util
│ │ ├─service
│ │ │ ├─card
│ │ │ ├─customer
│ │ │ │ └─impl
│ │ │ ├─impl
│ │ │ └─passport
│ │ │ └─impl
│ │ ├─util
│ │ │ └─ipseek
│ │ └─ws
│ │ └─client
│ ├─dao
│ ├─struts
│ └─templates
└─lib
至于每個檔案夾的名字,看這篇文章應該都很清楚了,就不用多說。
其中一種方法:
把abc檔案夾複制到 tomcat根目錄下面的webapps下面,直接啟動tomcat後就可以通路了
http://localhost:8080/abc/index.jsp