Java Reference
In-Depth Information
It returns this value:
•
ServletContext
The
getServletName()
Method
public java.lang.String getServletName()
The
getServletName()
method returns the registered servlet's name.
getServletName()
has
no parameters and throws no exceptions.
It returns this value:
•
java.lang.String
The
getInitParameter()
Method
public java.lang.String getInitParameter(java.lang.String)
The
getInitParameter()
method returns a string containing the value of the initialization
parameter's name/value pair referenced by the passed-in string representing the name.
getInitParameter()
throws no exceptions.
It has one parameter:
•
java.lang.String
It returns this value:
•
java.lang.String
The
getInitParameterNames()
Method
public java.util.Enumeration getInitParameterNames()
The
getInitParameterNames()
method returns an enumeration of strings representing all of
the initialization parameters' names.
getInitParameterNames()
takes no parameters and
throws no exceptions.
It returns this value:
•
java.util.Enumeration
The
ServletContext
Interface
public interface ServletContext
The
ServletContext
interface defines an object to be created by a servlet engine that contains
information about the servlet's environment. This interface provides several methods to access
this information.