- new-project-myEclips-webProject
- 输入project name,选择javaEE5.0以上版本
- 菜单windows-preferences—搜索tomcat-配置tomcal的位置
- 搜索jres-配置jre版本
- 解压struts压缩包
- 解压下面的\apps\下struts_blank.war压缩包
- 拷贝webInfo-classes\struts.Xml至工程目录src下
- 拷类库,将blank下的lib所有jar包拷贝至工程webInfo-lib下
- 抄袭web.xml
- 配置struts.xml
- Struts下只留
- Jsp自己修改
- 右键项目-debug as-
- 浏览http://localhost:8080/Hsmb_Zbxt/hello即可
创建一个struts2.0
最新推荐文章于 2019-05-13 23:13:00 发布