使用过一段时间的struts1,感觉挺好的一个框架,最近打算自己开发点东西,现在看来struts2比较流行,仔细看了看相关文档,感觉有必要学习使用一下2,于是下载了5 May 2011 - Struts 2.2.3 General Availability Release,按照官方的例子一步一步学习。
学习过程中,发现有些错误还是需要总结记录以下的:
A、一些网址:
struts官方主页:http://struts.apache.org/
学习文档链接:struts官方主页右侧 Development 下的 Struts 2.x Draft Docs ,网址:http://struts.apache.org/2.x/index.html,单击Get started,进入:http://struts.apache.org/2.x/docs/home.html,然后单击 Tutorials ,再单击Getting Started ,进入:http://struts.apache.org/2.x/docs/getting-started.html
B、官方的例子【Getting Started】
How To Create A Struts 2 Web Application
我使用的是ANT版的例子来学习的,Create Struts 2 Web Application With Artifacts In WEB-INF lib and Use Ant To Build The Application
例子的源码可以从Google Code上下载,链接: http://code.google.com/p/struts2-examples/downloads/list.
C、开发环境
windows XP sp3
Myeclipse 8.6-20100723
tomcat 6.0.29
java version "1.6.0_22"
Java(TM) SE Runtime Environment (build 1.6.0_22-b04)
Java HotSpot(TM) Client VM (build 17.1-b03, mixed mode, sharing)
D、其它
----------------------------------------待续......