選中文件夾【Java Resources: src】,右擊【new】-【other】-【Web】-【servlet】
建立完成后,可以發現:【WebContent】-【WEB-INF】-【web.xml】,已經添加了剛才的那個servlet的信息。
---------
需要注意:需要把tomcat中的servlet-api.jar import 到:【WebContent】-【WEB-INF】-【lib】中
杲杲
Easy things should be easy, and hard things should be possible.
|
|
BlogJava |
首頁 |
發新隨筆 |
發新文章 |
聯系 |
聚合![]() |
隨筆:4 文章:3 評論:1 引用:0 |
|
|