Package | Description |
---|---|
javax.servlet |
The javax.servlet package contains a number of classes and interfaces that
describe and define the contracts between a servlet class and the
runtime environment provided for an instance of such a class by a
conforming servlet container.
|
Modifier and Type | Method and Description |
---|---|
ServletRegistration.Dynamic |
ServletContext.addJspFile(java.lang.String servletName,
java.lang.String jspFile)
Adds the servlet with the given jsp file to this servlet context.
|
ServletRegistration.Dynamic |
ServletContext.addServlet(java.lang.String servletName,
java.lang.Class<? extends Servlet> servletClass)
Adds the servlet with the given name and class type to this servlet
context.
|
ServletRegistration.Dynamic |
ServletContext.addServlet(java.lang.String servletName,
Servlet servlet)
Registers the given servlet instance with this ServletContext
under the given servletName.
|
ServletRegistration.Dynamic |
ServletContext.addServlet(java.lang.String servletName,
java.lang.String className)
Adds the servlet with the given name and class name to this servlet
context.
|