René Nyffenegger's collection of things on the web | |
René Nyffenegger on Oracle - Most wanted - Feedback
- Follow @renenyffenegger
|
The ServletContext interface | ||
The ServletContext must be provided by the Servlet Container.
The Servlet uses the ServletContext for logging, obtaining URL references to resources, and set/get attributes.
MethodsgetInitParameter
A servlet can use this method to access context initialization parameters found in the
deployment descriptor.
getInitParameterNamessetAttribute
Used for context attributes
getAttribute
Used for context attributes
getAttributeNames
Used for context attributes
removeAttribute
Used for context attributes
getResourcegetResourceAsStreamgetResourcePathsContext attributes
Any attribute set into a context is available to any other servlet within the same web application.
|