Easy to use ssh-struts2 01 environment for beginners (Graphic tutorial)

Firstly, SSH is not a framework, but the integration of multiple frameworks (struts + Spring + Hibernate). It is a popular open source integration framework for web applications, which is used to build flexible and easy to expand multi-layer web applications.

The system integrating SSH framework is divided into four layers in terms of responsibilities: presentation layer, business logic layer, data persistence layer and domain module layer (entity layer).

As the overall infrastructure of the system, struts is responsible for the separation of MVC. In the model part of Struts framework, it controls business jump, and uses hibernate framework to support the persistence layer. On the one hand, as a lightweight IOC container, spring is responsible for finding, locating, creating and managing objects and their dependencies. On the other hand, spring can make struts and Hibernate work better.

Today, we first touch on struts 2 in SSH, and what is struts 2? In short: it realizes the application framework of MVC design pattern based on Java EE web application by using java servlet / JSP technology. It is a classic product of MVC classic design pattern.

Let's not talk about more. Let's go directly to today's theme, the construction of struts 2 environment. Tools used: Eclipse, tomcat8, struts 2, version 2.3 twenty-four

Step 1: open eclipse and create a new web project

Step 2: import the jar package of struts 2 into lib under WEB-INF under webcontent in the newly built project. The jar package of struts 2 can be downloaded from its official website http://struts.apache.org/download.cgi

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>