Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: fix a couple typos
Tip

Struts 1 provided provides a plugin class that provided provides listener-like capabilities. The Struts 2 plugins are like Eclipse or FireFox plugins, and not at all like Struts 1 "plugins".

A Struts 2 plugin is a single JAR that class contains classes and /or configuration that extend, replace, or add to existing Struts framework functionality. A plugin can be installed by adding a JAR file to the application's class path. To configure the plugin, the JAR may should contain a
struts-plugin.xml file, which follows the same format as an ordinary struts.xml file.

...

Warning

Plugins are not loaded in any particular order. Plugins should not have dependencies on each other. A plugins plugin may depend on classes provided by Struts Core, but it should not depend on classes loaded by another plugin.

...

  1. struts-default.xml (bundled in the Core JAR)
  2. struts-plugin.xml (as many as can be found in other JARs)
  3. struts.xml (provided by the your application)

Since the struts.xml file is always loaded last, it can make use of any resources provided by the plugins bundled with the distribution, or any other plugins available to an application.

...