Official website: http://struts.apache.org
Click "Download", enter the page below, you can see the downloaded resources:
By clicking "Struts-2.3.20-all.zip", you will be able to get all the relevant resources for the STRUTS2 project. The directory structure of the STRUTS2 project consists of 4 directories: Apps, Docs, Lib, and Src:
Apps: Storage of all Struts2 instance itemsAll wars in the Apps directory are Web apps that are deployed directly to the Web server. These Struts2 example projects have a considerable guiding role in learning Struts2. When we have doubts about the use of Struts2 's features, we can get enough support by directly studying the source code of these projects.
docs: All Struts2 and xwork documents are storedThe docs directory is stored in theStruts2 and Xwork related documents are basically in the form of Wiki Page. This is mainly due toStruts2 is derived from WEBWORK2, and thus its documentation is also same strain in its presentation. The advantage of a Wiki Page document is that it is possible to divide the framework features that need to be expressed into several topics, with corresponding theoretical knowledge and example code to illustrate each topic.
Lib: contains Struts2 related jar files and jar files that the STRUTS2 runtime relies onThe Lib directory is a complete collection of dependent resources. The JAR files required to run the STRUTS2 project are located in this directory. we can see. Many of the features of STRUTS2 are provided in the form of plug-ins, so in the Lib directory in addition toThe vast majority of STRUTS2 project dependencies are plug-in resources.
src: Store all Struts2 source code in the project structure directory specified by Maven The Struts2 itself is written according to the project directory structure specified by MAVEN, so the SRC directory is organized in the same way as the directory structure provided by MAVEN.The advantage of this organizational structure is that we can find all of them in the SRC directoryStruts2 A single source file for related resources. Website: http://search.maven.org/Get source code management as a jar file:
use Struts2 source code:Jar Package Description: The 1:struts2 source file 2:struts2 jar file copies 1, 22 jars into the project's lib directory:
Then build a build path to 2:
Right button 2--"Properties" in Libraries
Select "Java Source attadchment", "Browse", select File 1 in Lib:
After that, you can expand the jar package and click on the class file to view the corresponding source code:
From for notes (Wiz)
(formerly) Struts Related resources download