O'Reilly logo

MySQL™ and JSP™ Web Applications: Data-Driven Programming Using Tomcat and MySQL by James Turner

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required