2. Copy all of (Web server application) the .tld files to

2. Copy all of the .tld files to the web application’s WEB-INF directory. 3. If you plan to use the Validator framework, copy the validation-rules.xml file to the WEB-INF directory. See Chapter 11 for more information on the configuration files required by the Struts Validator. 4. Create a web application deployment descriptor (web.xml) and copy it to the WEB-INF directory. See Chapter 4 for details on how to configure the web.xml file. 5. Create a struts-config.xml file and copy it to the WEB-INF directory. See Chapter 4 for details on how to configure the configuration file for Struts. 6. Create a properties file called commons-logging.properties and copy it to the WEB INF/classes directory. Put the following line in the file: org.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog 7. Create a Struts resource bundle and copy it to the WEB-INF/classes directory. See Chapter 12 for how to format this bundle and Chapter 4 for how to configure the Struts configuration file to use this bundle. That’s really all there is to installing the Struts framework. You still have to build the necessary JSP pages and other framework components, such as Actionand ActionForm classes, but this is what is required to get the environment running. It’s highly recommended that you play around with the example applications that are distributed with Struts. They are complete web applications, packaged as WAR files that you can copy to the container’s webapps directory. You have the option of using one of many different containers to run the Struts framework. In many cases, the steps just described should be followed exactly. However, not all containers are created equal, and some require modifications to the steps listed. The necessary modifications, if any, are described below. B.2 Tips on Installing Struts in Tomcat Depending on which version of Tomcat you use, you may have to perform a few additional steps. Because Struts 1.1 requires a container to support the 2.2 Servlet specification and the 1.1 JavaServer Pages specification, the minimum version of Tomcat that will work is Tomcat 3.2. However, if possible, you should attempt to use the latest version of Tomcat (4.X), as it has many improvements that allow the Struts applications to perform better. B.3 Tips on Installing Struts in WebLogic With earlier versions of WebLogic such as 5.1, you had to perform several non-intuitive steps in order to get Struts to work correctly. Some of these problems had to do with WebLogic unpacking only *.class files and not other files like JARs. However, with WebLogic 6.0, 6.1, and now 7.0, there shouldn’t be any extra steps to perform. B.4 Tips on Installing Struts in WebSphere If you have the latest patches applied, no extra steps should be required. However, developers have reported major headaches with installing Struts on Version 3.5.
Please visit our professional web hosting services to find out about cheap and reliable webhost service that will surely answer all your demands.

Leave a Reply