|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jcs.config.plugins.JCSStrutsPlugin
This plugin provides a simple way to integrate with Struts. It allows you to
specify the configuration file for JCS in the struts-config.xml file. JCS
will initialize and be destroyed at applicatiohn shutdown.
Add these lines to your struts-config.xml
Constructor Summary | |
JCSStrutsPlugin()
|
Method Summary | |
void |
destroy()
Destroys all the regions. |
void |
init(org.apache.struts.action.ActionServlet servlet,
org.apache.struts.config.ModuleConfig config)
Initialize JCS with config-file-name param. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JCSStrutsPlugin()
Method Detail |
public void init(org.apache.struts.action.ActionServlet servlet, org.apache.struts.config.ModuleConfig config) throws javax.servlet.ServletException
init
in interface org.apache.struts.action.PlugIn
servlet
- ActionServletconfig
- ModuleConfig
javax.servlet.ServletException
public void destroy()
destroy
in interface org.apache.struts.action.PlugIn
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |