Setting Up Struts

Installing Struts is actually fairly easy. You need to have the Xerces XML parser available to Tomcat; Chapter 14, “Integrating XML in E-Commerce Sites,” describes how to do this.

As of this writing, the current release of Struts is 1.0. Download the ZIP file from the FTP server at apache.org, and unpack it into \STRUTS. Now copy the webapps\struts-blank.war file to \TOMCAT\webapps\struts-bfg.war.

Stop and start the Tomcat server, and you'll see that there is now a struts-bfg subdirectory under webapps. You've just created a Struts-compliant Web app that you'll use to rebuild the MyAccount functionality of the BFG site using Struts.

Get MySQL™ and JSP™ Web Applications: Data-Driven Programming Using Tomcat and MySQL now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.