现在的位置: 首页 > 综合 > 正文

Struts2 官方教程之How To Create A Struts 2 Web Application(二)

2018年05月23日 ⁄ 综合 ⁄ 共 885字 ⁄ 字号 评论关闭

This tutorial walks through installing the framework and creating a simple application.

While the Struts 2 framework is simple to use, creating non-trivial applications assumes a working knowledge of many J2EE technologies, including:

  • Java
  • Filters, JSP, and Tag Libraries
  • JavaBeans
  • HTML and HTTP
  • Web Containers (such as Tomcat)
  • XML

For more about supporting technologies, see the

Key Technologies Primer
.

上面讲到需要的一些掌握的一些JavaEE技术,相信能学习Struts2的人,基本已经掌握

Java Requirements

Struts 2 requires Servlet API 2.4 or higher, JSP 2.0 or higher, and Java 5 or higher.

 

Our First Application

To get started using Struts 2 we will create a web application with the required Struts 2 artifacts in WEB-INF lib and use Ant to build the application. Then we will create the same application using Maven to manage the artifact dependencies.

You can download all the tutorial examples from Google Code -
http://code.google.com/p/struts2-examples/downloads/list
.此处连接可以下载官方的例子。

Click on the link for whichever technology (Ant or Maven) you're familiar with.

抱歉!评论已关闭.