安装步骤:
1、安装MyEclipse.
方法1:右击项目
![[转载]struts2鈥擬yEclipse <wbr>8.6中基本使用-新建项目、添 [转载]struts2鈥擬yEclipse <wbr>8.6中基本使用-新建项目、添](https://i-blog.csdnimg.cn/blog_migrate/682240c68d600865b99abb7f7fb11375.jpeg)
![[转载]struts2鈥擬yEclipse <wbr>8.6中基本使用-新建项目、添 [转载]struts2鈥擬yEclipse <wbr>8.6中基本使用-新建项目、添](https://i-blog.csdnimg.cn/blog_migrate/712d61182c18201a13d01099842f6c4a.jpeg)
![[转载]struts2鈥擬yEclipse <wbr>8.6中基本使用-新建项目、添 [转载]struts2鈥擬yEclipse <wbr>8.6中基本使用-新建项目、添](https://i-blog.csdnimg.cn/blog_migrate/2906f826259950469b65242a598f1017.jpeg)
方法2:
![[转载]struts2鈥擬yEclipse <wbr>8.6中基本使用-新建项目、添 [转载]struts2鈥擬yEclipse <wbr>8.6中基本使用-新建项目、添](https://i-blog.csdnimg.cn/blog_migrate/a58f47e49722750a36e63125f33b7b44.jpeg)
添加完效果如下图:
![[转载]struts2鈥擬yEclipse <wbr>8.6中基本使用-新建项目、添 [转载]struts2鈥擬yEclipse <wbr>8.6中基本使用-新建项目、添](https://i-blog.csdnimg.cn/blog_migrate/ab6c33ee1b29c3f19cd3b54907fcd869.jpeg)
5、部署项目:
![[转载]struts2鈥擬yEclipse <wbr>8.6中基本使用-新建项目、添 [转载]struts2鈥擬yEclipse <wbr>8.6中基本使用-新建项目、添](https://i-blog.csdnimg.cn/blog_migrate/d6d2f841434a43b34f5a0bf38b0c603a.jpeg)
![[转载]struts2鈥擬yEclipse <wbr>8.6中基本使用-新建项目、添 [转载]struts2鈥擬yEclipse <wbr>8.6中基本使用-新建项目、添](https://i-blog.csdnimg.cn/blog_migrate/c2af795f993bce6d2a3ebac6edfe2ed8.jpeg)
![[转载]struts2鈥擬yEclipse <wbr>8.6中基本使用-新建项目、添 [转载]struts2鈥擬yEclipse <wbr>8.6中基本使用-新建项目、添](https://i-blog.csdnimg.cn/blog_migrate/360786c864808dcafdc7d53de9c16ffb.jpeg)
![[转载]struts2鈥擬yEclipse <wbr>8.6中基本使用-新建项目、添 [转载]struts2鈥擬yEclipse <wbr>8.6中基本使用-新建项目、添](https://i-blog.csdnimg.cn/blog_migrate/2a3f9ab2b68edd1ebfb28e6671d93b13.jpeg)
6、运行调试:
![[转载]struts2鈥擬yEclipse <wbr>8.6中基本使用-新建项目、添 [转载]struts2鈥擬yEclipse <wbr>8.6中基本使用-新建项目、添](https://i-blog.csdnimg.cn/blog_migrate/759610db881610b1c79b53aa39ab4273.jpeg)
先启动tomcat服务器,然后再浏览器中重新输入网址’http://localhost:8080/Struts2/index.jsp’即像是结果“This is my JSP page.”
7、以后便可在项目中添加JSP页面,然后启动tomcat,输入网址测试即可。
注意:
(1)在书写时区别大小写,如把’http://localhost:8080/Struts/index.jsp’写成’http://localhost:8080/struts/index.jsp’则会出现“404错误类型”(“index.jsp”文件是新建项目自带的页面,输出内容是“This is my JSP page.”)。
(2)‘‘http://localhost:8080/Struts/index.jsp’’中,“localhost:8080”表示本机端口号,“Struts”表示新建项目名称,“index.jsp”表示要打开的页面。
(3)每次打开MyEclipse时,出现的界面
表示项目的出处位置,可以任意位置。
(4)修改完程序后,要重新启动tomcat,再进行测试。
本文详细介绍了如何使用MyEclipse IDE完成Struts2项目的安装配置、整合Tomcat服务器、创建Web项目并添加Struts支持的过程,以及如何部署和调试项目。
![[转载]struts2鈥擬yEclipse <wbr>8.6中基本使用-新建项目、添 [转载]struts2鈥擬yEclipse <wbr>8.6中基本使用-新建项目、添](https://i-blog.csdnimg.cn/blog_migrate/d6674bc630e567bc37f20938d2bbd381.jpeg)
![[转载]struts2鈥擬yEclipse <wbr>8.6中基本使用-新建项目、添 [转载]struts2鈥擬yEclipse <wbr>8.6中基本使用-新建项目、添](https://i-blog.csdnimg.cn/blog_migrate/d0bb6ff511c5a90fcaf5e47dc1ae07dd.jpeg)
![[转载]struts2鈥擬yEclipse <wbr>8.6中基本使用-新建项目、添 [转载]struts2鈥擬yEclipse <wbr>8.6中基本使用-新建项目、添](https://i-blog.csdnimg.cn/blog_migrate/fb9f462b9194efa70e69236ec6b4d0bb.jpeg)
![[转载]struts2鈥擬yEclipse <wbr>8.6中基本使用-新建项目、添 [转载]struts2鈥擬yEclipse <wbr>8.6中基本使用-新建项目、添](https://i-blog.csdnimg.cn/blog_migrate/226ba4717b4f738205743531c203df45.jpeg)
![[转载]struts2鈥擬yEclipse <wbr>8.6中基本使用-新建项目、添 [转载]struts2鈥擬yEclipse <wbr>8.6中基本使用-新建项目、添](https://i-blog.csdnimg.cn/blog_migrate/878b9f13815329d17be0b015e942fcd2.jpeg)
![[转载]struts2鈥擬yEclipse <wbr>8.6中基本使用-新建项目、添 [转载]struts2鈥擬yEclipse <wbr>8.6中基本使用-新建项目、添](https://i-blog.csdnimg.cn/blog_migrate/c11b13c9c1a5f4ef534560788bd2bf77.jpeg)
![[转载]struts2鈥擬yEclipse <wbr>8.6中基本使用-新建项目、添 [转载]struts2鈥擬yEclipse <wbr>8.6中基本使用-新建项目、添](https://i-blog.csdnimg.cn/blog_migrate/13408ec8b64679e7f43b81d6dfe06e8b.jpeg)
![[转载]struts2鈥擬yEclipse <wbr>8.6中基本使用-新建项目、添 [转载]struts2鈥擬yEclipse <wbr>8.6中基本使用-新建项目、添](https://i-blog.csdnimg.cn/blog_migrate/2c0cc431e6a3a9d7a3221986401ba5b3.jpeg)

1064

被折叠的 条评论
为什么被折叠?



