What is the difference between context and init parameters in servlet configuration?
- Context parameters are set at the application level, while init parameters are at the servlet level.
- Context parameters are used for initialization, and init parameters are used for configuration.
- Init parameters are set at the application level, while context parameters are at the servlet level.
- Init parameters are used for initialization, and context parameters are used for configuration.
Context parameters are set at the application level and are shared among all servlets, while init parameters are specific to each servlet. Init parameters are configured in the servlet's declaration in the web.xml file.
Loading...
Related Quiz
- How can a filter be configured to process requests for specific servlets or URL patterns?
- The _________ interface in Java EE allows the server to react to WebSocket lifecycle events.
- A filter is implemented to log request details. Where should this logging take place in the filter's methods?
- To listen for events related to a specific attribute in a session, implement the interface ___________.
- What is the difference between filter chaining and servlet chaining?