public abstract class ServletInitializer extends Object
Modifier and Type | Method and Description |
---|---|
static void |
init(javax.servlet.ServletContext context)
Initialize servlet and JSP configuration on the first invocation of this
method.
|
public static void init(javax.servlet.ServletContext context) throws javax.servlet.ServletException
Call this method in the init
method of your servlet or
JSP. It will read the servlet initialization parameters from the
ServletConfig
and ServletContext
and
OpenNMS configuration files.
context
- the ServletContext
instance in which your
servlet is runningjavax.servlet.ServletException
- if any.Copyright © 2021. All rights reserved.