JavaEE初體驗(2)--手動構建Web應用

手動構建Web應用:

 

具體參考<<輕量級Jave EE企業應用實戰>>  P60
1)2) Create a new folder in anywhere you like, and a new folder "WEB-INF" insides it too. for example:

 

C:\webDemo\WEB-INF

(WEB-INF:web informations)

 

3) Copy a web.xml file form one of the tomcat's web application examples, put the file under folder WEB-INF

 

4)Change the code according to P61 in the book

 

5) Create two new folders under WEB-INF, classes and lib

 

6) Create a.jsp under folder <webdemo> as P61

 

7) 運行 Tomcat 的 startup.bat,然後在瀏覽器輸入:http://localhost:8888/webDemo/a.jsp

 

成功,結束~~

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章