| < Day Day Up > |
|
The <plug-in> element is used to add Plugins to the Struts Controller. As we discussed in Chapter 4, "Actions and the ActionServlet," Struts Plugins are useful when allocating resources or preparing connections to databases or even JNDI resources. The <plug-in> element has a single attribute, className, which is used to define the fully qualified Plugin class.
The syntax of the <plug-in> element is:
<plug-in className="Fully qualified Plugin class name"/>
This example uses the <plug-in> element:
<plug-in className="ch04.WroxPlugin"/>
| < Day Day Up > |
|