struts-config.xml File

The struts-config.xml file resides in the same directory as the web.xml file and contains the application flow mappings necessary for correct interaction with Struts. Looking at the sample struts-config.xml shown in Listing 19.2, we can quickly see the important features.

Listing 19.2. struts-config.xml
 1 <?xml version="1.0" encoding="ISO-8859-1" ?> 2 <!DOCTYPE struts-config PUBLIC 3 "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN" 4 "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd"> 5 <struts-config> 6 <data-sources> 7 <data-source key = "myDatabase"> 8 <set-property property="autoCommit" 9 value="false"/> 10 <set-property property="description" 11 value=" Login Validation Database"/> 12 <set-property ...

Get BEA WebLogic Server™ 8.1 Unleashed 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.