1、window→preferences打開屬性窗口

2、點擊add

3、點擊Tomcat6.0 點擊next

4、選擇tomcat的解壓目錄和jdk,並點擊finish

5、點擊ok

6、打開servers窗口


7.右鍵新建

8、點擊finish

9、點擊finish

10、右鍵→new→Dynamic Web Project

11、輸入項目名,點擊next

12、點擊next

13、勾選復選框,讓其生成web.xml,然后finish

14、在WebContent下創建jsp頁面

15、選中Server選項卡下的Tomcat v7.。。,然后在上面彈窗中點擊Add and Remove

16、選中左側某個web項目點擊add

17、點擊finish

18、點擊任務欄上的綠色啟動按鈕

19、控制台打印如下啟動信息

20、在瀏覽器訪問項目

21、如何查看eclipse的工作空間
在導航欄,選擇“file"中的"Switch Workspace"
