Struts Sample Application
The Struts sample application is a fully functional Struts application that enables a user to log in and update a shopping cart. The application is meant as tool to exemplify some of the Struts features talked about in this chapter. The example contains all the libraries needed for Struts in the WEB-INF/lib directory. An included batch file builds the application and creates a testStruts.war file for deploying on WebLogic. To compile the classes found in the WEB-INF/classes/* directories, simply modify the buildWAR.bat file to contain the path to weblogic.jar and then run it. Use the WebLogic deployment tools to deploy the application either by running the console or running the command-line deployment tool. The login for the application is Customer Number 1234, Password=1234 as shown in Figure 19.2.
Figure 19.2. Struts sample login page.