Paragraph 1. Order: Preparing Struts Development
Primer
Last year, the epidemic of the Struts frame is simple to grow in terrible growth. Since Struts 1.1 has been released in June 2003, Struts has become the most popular framework for developing complex JSP web applications. Struts' user email list is very busy, usually 70 messages per day.
Although it is very popular, it is still a public topic that solves how Struts development entry is still a public topic. The move in this paragraph should be able to help your Struts development can start.
Many excellent business tools are also built on Struts, here we focus on or open source and free tools and frames (like "free beer"). Through the attention of free tools, developers more encouragement, if they want to use them, although they are tested.
Section 1.1. Download Struts
problem
You want to start using Struts for application development.
Action decomposition
Download the Struts binary code or source code from http://struts.apache.org/acquiring.html, and deploy the sample to your Web container.
Moving change
A general problem with the Struts novice developer is to use which release version. If there is no problem, any new Struts project should use the latest valid version. When writing this book, Struts
1.2.4
(This book is called Struts 1.2) Just completed the GA (General Availability phase.
For developers who seek the latest and strongest Struts feature, Struts's Nightly Build will provide Struts 1.3.
You will find that it is useful to have binary code and source code distribution packages. Binary Distribution includes Struts JAR and related JAR. In other words, the source code Distribution will contain the source code of the Struts framework itself, and the Java code of the Struts tag library. It is also important that Source Distribution includes Java code, deployment descriptors, HTML pages, and JSP pages.
The actual content of these Distributions will depend on whether you get the latest Release Build or Struts Nightly Build.
The Binary Distribution of the struts 1.2 Release Build contains a basic Readme file, a installation document, as well as a documentation. The lib folder contains the Struts JAR file and the dependent JAR file from the Jakarta Commons project. The Contrib folder contains the contribution of the Struts distribution package that is not considered a Struts core part. In particular, this folder also includes the JAR file and example web application of Struts-EL. Struts-EL allows you to use JSTL (JSP Standard Tag Library) style expressions in the STRUTS tag. It includes the necessary JSTL tag library.
Struts 1.2 Release Build's Source Distribution includes the source code for the Struts framework, as well as the source code for the sample application and the web resource. In addition, the Contrib folder also includes the Struts community contribution to the list of Contribution, and the source code that may not be a Struts core and future. Some specific contributions include:
Struts-EL
The Struts tag of JSTL expressions language support.
Struts-Faces
Supports Struts applications and JavaServer Faces technology for integrated framework.
SCAFFOLD
A set of funds that help integrate your data layer (model) and Struts.
Once you have downloaded the source code and binary distribution, you can deploy the sample applications contained in Struts, see section 1.2 of this problem. See
Section 1.2 will describe how the Struts example application included in the Struts Distribution is described.
If you are completely a Struts newcomer, you may need to take a look at the Chuck Cavarative Programming Jakarta Struts (O'Reilly). Other information can access the Struts homepage at http://struts.apache.org.