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