开发环境
- Eclipse For Java EE(Kepler Release)
- Tomcat(7.0)
开发步骤
- 安装Web工具
- 点击Eclipse->Help->Install New Software..
- 添加更新源:http://download.eclipse.org/callisto/releases/
- 选中Web and J2EE Development并安装
- 新建Web工程
- 点击File->new->other...
- 点击Next,输入Project Name
- Target Runtime点击New Runtime,选择Tomcat7.0
- 点击Next,Tomcat Install Directiory指向Tomcat的存放位置
- 点击Finish,完成Tomcat配置点击Finish,完成项目的新建
- 点击File->new->other...
- 打开Server视图
- 点击Window->Show View->other...
- 双击Tomcat进行配置
- 在WebContent新建文件(html 或 jsp)
- 在src下新建servlet文件
- 点击Window->Show View->other...