1.下载Struts2源代码
http://struts.apache.org/download.cgi#struts23163
2.装Maven。因为Struts2用Maven构建的。
3.装Maven Eclipse插件。地址:
http://download.eclipse.org/technology/m2e/releases/
4.下载后解压,里面有很多子工程。这里只是需要struts2-core和xwork-core这两个工程。因为都是用maven构建的,所以将工程作为maven工程导入Eclipse即可。
5.由于struts2-core要引用xwork-core工程的类,在struts2-core工程link下xwork-core即可。