first servlet

来源:互联网 发布:网络时时彩赌博案量刑 编辑:程序博客网 时间:2024/06/13 18:44

environment setup:

1. 下载ECLIPSE JAVA EE

2 安装 WTP 插件


servlet

1 create a web project with eclipse

2 write servlet class

3 build servlet

4 copy *.class to WEB-INF/classes

5 write a  web.xml

6 run and debug  (选中项目右键弹出菜单,run as  -》 run on server      eclipse 会启动tomcat )   

也可以把整个 webcontent目录拷贝至 tomcat 的 webapps 目录下去运行。



0 0
原创粉丝点击