2008年9月28日 星期日

利用Eclipse建置一個Web專案

先安裝好Eclipse(Eclipse 3.3 或以上版本,下載Eclipse)
步驟一.新增一專案
1.選擇File --> New --> Project


2.Dynamic Web Project


3.Project name 輸入一專案名稱


4.Web Content 可以不用改


5.建置好一個專案了


6.在WebContent新增一個index.jsp檔案(在WebContent按滑鼠右鍵--> New --> Other)


7.選擇(Web --> JSP)


8.File name輸入index.jsp


9.修改index.jsp的內容


10.建置一個可以運作的Server(在servers按滑鼠右鍵 New --> Server)


11.選擇使用的Web Server


12.選擇Web Server存放的路徑


13.選擇這Server執行的專案




14.啟動Server


16.打開瀏覽器輸入http://localhost:83/tkpos/可看見剛才新增的網頁

沒有留言: