Tip |
---|
Struts 1 provides a plugin class that 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 contains Struts 2 plugins contain classes and configuration that extend, replace, or add to existing Struts framework functionality. A plugin can be installed by adding a its JAR file to the application's class path, in addition to the JAR files to fulfill whatever dependencies the plugin itself may have. To configure the plugin, the JAR should contain a struts-plugin.xml
file, which follows the same format as an ordinary struts.xml
file.
...