Adding Plugins

 < 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 > 



Professional Jakarta Struts
Professional Jakarta Struts (Programmer to Programmer)
ISBN: 0764544373
EAN: 2147483647
Year: 2003
Pages: 183

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net