| java.lang.Object javax.servlet.jsp.jstl.core.Config
Config | public class Config (Code) | | Class supporting access to configuration settings.
|
Method Summary | |
public static Object | find(PageContext pc, String name) Finds the value associated with a specific configuration setting
identified by its context initialization parameter name.
For each of the JSP scopes (page, request, session, application),
get the value of the configuration variable identified by name
using method get(). | public static Object | get(PageContext pc, String name, int scope) Looks up a configuration variable in the given scope. | public static Object | get(ServletRequest request, String name) Looks up a configuration variable in the "request" scope. | public static Object | get(HttpSession session, String name) Looks up a configuration variable in the "session" scope.
The lookup of configuration variables is performed as if each scope
had its own name space, that is, the same configuration variable name
in one scope does not replace one stored in a different scope.
Parameters: session - Session object in which the configuration variable is tobe looked up Parameters: name - Configuration variable name The java.lang.Object associated with the configurationvariable, or null if it is not defined, if session is null, or if the sessionis invalidated. | public static Object | get(ServletContext context, String name) Looks up a configuration variable in the "application" scope. | public static void | remove(PageContext pc, String name, int scope) Removes a configuration variable from the given scope. | public static void | remove(ServletRequest request, String name) Removes a configuration variable from the "request" scope. | public static void | remove(HttpSession session, String name) Removes a configuration variable from the "session" scope. | public static void | remove(ServletContext context, String name) Removes a configuration variable from the "application" scope. | public static void | set(PageContext pc, String name, Object value, int scope) Sets the value of a configuration variable in the given scope. | public static void | set(ServletRequest request, String name, Object value) Sets the value of a configuration variable in the "request" scope. | public static void | set(HttpSession session, String name, Object value) Sets the value of a configuration variable in the "session" scope. | public static void | set(ServletContext context, String name, Object value) Sets the value of a configuration variable in the "application" scope. |
FMT_FALLBACK_LOCALE | final public static String FMT_FALLBACK_LOCALE(Code) | | Name of configuration setting for fallback locale
|
FMT_LOCALE | final public static String FMT_LOCALE(Code) | | Name of configuration setting for application- (as opposed to browser-)
based preferred locale
|
FMT_LOCALIZATION_CONTEXT | final public static String FMT_LOCALIZATION_CONTEXT(Code) | | Name of configuration setting for i18n localization context
|
FMT_TIME_ZONE | final public static String FMT_TIME_ZONE(Code) | | Name of localization setting for time zone
|
SQL_DATA_SOURCE | final public static String SQL_DATA_SOURCE(Code) | | Name of configuration setting for SQL data source
|
SQL_MAX_ROWS | final public static String SQL_MAX_ROWS(Code) | | Name of configuration setting for maximum number of rows to be included
in SQL query result
|
find | public static Object find(PageContext pc, String name)(Code) | | Finds the value associated with a specific configuration setting
identified by its context initialization parameter name.
For each of the JSP scopes (page, request, session, application),
get the value of the configuration variable identified by name
using method get(). Return as soon as a non-null value is
found. If no value is found, get the value of the context initialization
parameter identified by name.
Parameters: pc - Page context in which the configuration setting is to be searched Parameters: name - Context initialization parameter name of the configurationsetting The java.lang.Object associated with the configurationsetting identified by name, or null if it is not defined. |
get | public static Object get(PageContext pc, String name, int scope)(Code) | | Looks up a configuration variable in the given scope.
The lookup of configuration variables is performed as if each scope
had its own name space, that is, the same configuration variable name
in one scope does not replace one stored in a different scope.
Parameters: pc - Page context in which the configuration variable is to belooked up Parameters: name - Configuration variable name Parameters: scope - Scope in which the configuration variable is to be lookedup The java.lang.Object associated with the configurationvariable, or null if it is not defined. |
get | public static Object get(ServletRequest request, String name)(Code) | | Looks up a configuration variable in the "request" scope.
The lookup of configuration variables is performed as if each scope
had its own name space, that is, the same configuration variable name
in one scope does not replace one stored in a different scope.
Parameters: request - Request object in which the configuration variable is tobe looked up Parameters: name - Configuration variable name The java.lang.Object associated with the configurationvariable, or null if it is not defined. |
get | public static Object get(HttpSession session, String name)(Code) | | Looks up a configuration variable in the "session" scope.
The lookup of configuration variables is performed as if each scope
had its own name space, that is, the same configuration variable name
in one scope does not replace one stored in a different scope.
Parameters: session - Session object in which the configuration variable is tobe looked up Parameters: name - Configuration variable name The java.lang.Object associated with the configurationvariable, or null if it is not defined, if session is null, or if the sessionis invalidated. |
get | public static Object get(ServletContext context, String name)(Code) | | Looks up a configuration variable in the "application" scope.
The lookup of configuration variables is performed as if each scope
had its own name space, that is, the same configuration variable name
in one scope does not replace one stored in a different scope.
Parameters: context - Servlet context in which the configuration variable isto be looked up Parameters: name - Configuration variable name The java.lang.Object associated with the configurationvariable, or null if it is not defined. |
remove | public static void remove(PageContext pc, String name, int scope)(Code) | | Removes a configuration variable from the given scope.
Removing a configuration variable is performed as if each scope had
its own namespace, that is, the same configuration variable name in one
scope does not impact one stored in a different scope.
Parameters: pc - Page context from which the configuration variable is to beremoved Parameters: name - Configuration variable name Parameters: scope - Scope from which the configuration variable is to be removed |
remove | public static void remove(ServletRequest request, String name)(Code) | | Removes a configuration variable from the "request" scope.
Removing a configuration variable is performed as if each scope had
its own namespace, that is, the same configuration variable name in one
scope does not impact one stored in a different scope.
Parameters: request - Request object from which the configuration variable isto be removed Parameters: name - Configuration variable name |
remove | public static void remove(HttpSession session, String name)(Code) | | Removes a configuration variable from the "session" scope.
Removing a configuration variable is performed as if each scope had
its own namespace, that is, the same configuration variable name in one
scope does not impact one stored in a different scope.
Parameters: session - Session object from which the configuration variable isto be removed Parameters: name - Configuration variable name |
remove | public static void remove(ServletContext context, String name)(Code) | | Removes a configuration variable from the "application" scope.
Removing a configuration variable is performed as if each scope had
its own namespace, that is, the same configuration variable name in one
scope does not impact one stored in a different scope.
Parameters: context - Servlet context from which the configuration variable isto be removed Parameters: name - Configuration variable name |
set | public static void set(PageContext pc, String name, Object value, int scope)(Code) | | Sets the value of a configuration variable in the given scope.
Setting the value of a configuration variable is performed as if
each scope had its own namespace, that is, the same configuration
variable name in one scope does not replace one stored in a different
scope.
Parameters: pc - Page context in which the configuration variable is to be set Parameters: name - Configuration variable name Parameters: value - Configuration variable value Parameters: scope - Scope in which the configuration variable is to be set |
set | public static void set(ServletRequest request, String name, Object value)(Code) | | Sets the value of a configuration variable in the "request" scope.
Setting the value of a configuration variable is performed as if
each scope had its own namespace, that is, the same configuration
variable name in one scope does not replace one stored in a different
scope.
Parameters: request - Request object in which the configuration variable is tobe set Parameters: name - Configuration variable name Parameters: value - Configuration variable value |
set | public static void set(HttpSession session, String name, Object value)(Code) | | Sets the value of a configuration variable in the "session" scope.
Setting the value of a configuration variable is performed as if
each scope had its own namespace, that is, the same configuration
variable name in one scope does not replace one stored in a different
scope.
Parameters: session - Session object in which the configuration variable is tobe set Parameters: name - Configuration variable name Parameters: value - Configuration variable value |
set | public static void set(ServletContext context, String name, Object value)(Code) | | Sets the value of a configuration variable in the "application" scope.
Setting the value of a configuration variable is performed as if
each scope had its own namespace, that is, the same configuration
variable name in one scope does not replace one stored in a different
scope.
Parameters: context - Servlet context in which the configuration variable is tobe set Parameters: name - Configuration variable name Parameters: value - Configuration variable value |
|
|