这个教程旨在教大家如何如何安装框架和创建一个简单的程序
|
Struts 2框架用起来很简单,这个教程假设你已经掌握如下J2EE技术:
|
Java需求
Struts 2 需要Servlet API 2.4或更高,JSP 2.0或更高和Java 5或更高
我们的第一个程序
为了开始使用Struts 2 我们将用ant建立一个web 应用程序,然后我们将用Maven建立同样的一个程序。
你可以从Google Code - http://code.google.com/p/struts2-examples/downloads/list下载所有的例子。
在下面选择一个你熟悉的技术(Ant或Maven)
Create Struts 2 Web Application With Artifacts In WEB-INF lib and Use Ant To Build The Application
Create Struts 2 Web Application Using Maven To Manage Artifacts and To Build The Application