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

The struts-config.xml File

You can think of struts-config.xml as the traffic cop that controls the entire flow of an application under Struts. It lives in the WEB-INF subdirectory of your newly created struts-bfg directory under Tomcat. Listing 16.1 shows one modified for your application.

Listing 16.1. struts-config.xml
 <?xml version="1.0" encoding="ISO-8859-1" ?> <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.0//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd"> <!-- BFG Struts Configuration File --> <struts-config> <!-- ========== Form Bean Definitions =================================== --> <form-beans> <form-bean name="creditcardForm" type="com.bfg.struts.creditcardForm"/> <form-bean ...

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