The listener interface _________ is used to listen for request attribute changes.
- EventListener
- HttpSessionAttributeListener
- ServletContextAttributeListener
- ServletRequestAttributeListener
The correct answer is HttpSessionAttributeListener. This interface is used to listen for changes to attributes in a session, allowing developers to respond to attribute addition, removal, or replacement.
Loading...
Related Quiz
- How does a filter pass the request and response to the next entity in the filter chain?
- WebSocket connections are maintained even if the underlying _________ changes, like from HTTP to HTTPS.
- A transaction's property ensuring that either all its operations are completed successfully, or none are, is known as _________.
- HTTP persistent connections are managed using the _________ header in servlet responses.
- Which strategy involves adding more servers to handle increased load in a web application?