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

 

成功,结束~~

 

 

你可能感兴趣的:(tomcat,Web,jsp,javaee,企业应用)