Commons Logging Appendix B. Downloading and Installing (Web design conference)

Commons Logging Appendix B. Downloading and Installing Struts This appendix provides instructions and helpful tips on installing the Struts framework. All attempts have been made to ensure that these instructions work with the latest available versions of the containers. If you encounter any problems, check the STRUTS-USER mailing list. B.1 The Binary Versus Source Distributions There are two distribution methods for the Struts framework, source and binary. The source distribution gives you more control over the build package environment. However, this method is not for beginners. Unless you have a specific need (e.g., you need to insert a modified class file into the build), you should stick with the binary distribution. This section presents both methods. B.1.1 Building Struts from the Source Distribution You can obtain the source packages of Struts and the rest of the Jakarta projects from http://jakarta.apache.org/site/sourceindex.html. Several different versions are usually available, so be sure to get the one that’s appropriate for your needs. There is always a nightly build of Struts that includes the latest changes and fixes. In most situations, you’ll want to go with the nightly build, but be aware that it may also include new bugs. When choosing a download, you have the option of selecting a ZIP file or a compressed TAR file. Choose the one that is appropriate for your environment. Once you have downloaded the appropriate version, extract the contents into a directory. The directory doesn’t have to be empty, but it’s easier if it is. The Struts source distribution file unpacks everything into a subdirectory called jakarta-struts. Before you can build the source files, you will also need to download several prerequisite software packages (if they’re not already installed in your environment). The following list describes the required software: Java SDK Version 1.2 or later. You can download the latest version from http://java.sun.com/j2se/. Servlet container One that supports the 2.2 Servlet specification or later and the 1.1 JavaServer Pages specification or later. Ant build tool Version 1.3 or later. You can download the latest version from http://jakarta.apache.org/ant/.
Visit our web design programs services for an affordable and reliable webhost to suit all your needs.

Leave a Reply