com.pow2.resources
Class Pow2ToolkitInit
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.pow2.resources.InitServlet
com.pow2.resources.Pow2ToolkitInit
- All Implemented Interfaces:
- Serializable, Servlet, ServletConfig
- public class Pow2ToolkitInit
- extends InitServlet
Pow2Toolkit init servlet.
Configure and initialize the toolkit defining the following servlet
into the web.xml file of your web-application.
<servlet>
<servlet-name>Pow2ToolkitInit</servlet-name>
<servlet-class>com.pow2.resources.Pow2ToolkitInit</servlet-class>
<init-param>
<param-name>properties</param-name>
<param-value>WEB-INF/pow2toolkit.properties</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
Writing an initialization servlet is the most flexible way for initializing Pow2Toolkit.
There are no constraints on the code you can place in the init() method of the servlet.
- Author:
- Luca Fossato
- See Also:
- Serialized Form
Method Summary |
void |
init()
Initialize this servlet and configure the Properties object
using the configuration file whose path is set by the properties
parameter of the web.xml file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Pow2ToolkitInit
public Pow2ToolkitInit()
init
public void init()
throws ServletException
- Initialize this servlet and configure the Properties object
using the configuration file whose path is set by the
properties
parameter of the web.xml
file.
- Throws:
ServletException
- Description of the Exception
Copyright © 2002-2004 Power Of Two S.R.L. All Rights Reserved.