The org.apache.struts.config Package
The org.apache.struts.config
package was added to Struts 1.1. The framework uses JavaBeans at
runtime to hold the configuration information it reads from the
Struts configuration files. Figure 4-4 shows the
main classes from the config package.

Figure 4-4. Class diagram for the org.apache.struts.config package
Each class in the config package holds information
from a specific section of the configuration file. After the
configuration file has been validated and parsed, the Struts
framework uses instances of these beans to represent in-memory
versions of the information that has been declared in the
configuration file. These classes act as runtime containers of the
configuration information and are used by the framework components as
needed.
The
org.apache.struts.config.ConfigRuleSet
class shown in Figure 4-4 has a slightly different,
but related, job—it contains the set of rules that are required
to parse a Struts configuration file. Its job is to construct
instances of the configuration JavaBeans mentioned in the previous
paragraph when the application is started.
The ApplicationConfig Class
The
org.apache.struts.config.ApplicationConfig
class deserves a special introduction, as it plays a very important
role in the framework. As Figure 4-4 indicates, it
is central to the entire config package and holds onto the configuration information ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access