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 ...

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

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.