サーブレットコンフィグの使い方
1306 ワード
javax.servlet
Interface ServletConfig
All Known Implementing Classes:
GenericServlet, HttpServlet
A servlet configuration object used by a servlet container to pass information to a servlet during initialization.
servletの初期化中、tomcatなどのwebコンテナはサーブレットコンフィグを使用してservletに情報を伝達します.
Method Summary
getServiceletName()の値はwebにあります.xmlでは、次のように定義されています.
XXXServlet
Interface ServletConfig
All Known Implementing Classes:
GenericServlet, HttpServlet
public interface ServletConfig
A servlet configuration object used by a servlet container to pass information to a servlet during initialization.
servletの初期化中、tomcatなどのwebコンテナはサーブレットコンフィグを使用してservletに情報を伝達します.
Method Summary
java.lang.String
getInitParameter(java.lang.String name)
Returns a String
containing the value of the named initialization parameter, or null
if the parameter does not exist. java.util.Enumeration
getInitParameterNames()
; on parameters as an Enumeration
of String
objects, or an empty Enumeration
if the servlet has no initialization parameters. ServletContext
getServletContext()
Returns a reference to the ServletContext
in which the caller is executing. java.lang.String
getServletName()
Returns the name of this servlet instance. getServiceletName()の値はwebにあります.xmlでは、次のように定義されています.