Professional Documents
Culture Documents
Docs Oracle
Docs Oracle
Preface
Session Management Web context (see Accessing the Initialization and destruction javax.servlet.ServletContextListener and
Web Context)
Session Tracking ServletContextEvent
Finalizing a Servlet
Attribute added, removed, or javax.servlet.ServletContextAttributeListener and
Tracking Service Requests
replaced
Notifying Methods to Shut Down ServletContextAttributeEvent
Creating Polite Long-Running Methods
Session (See Maintaining Client Creation, invalidation, activation, javax.servlet.http.HttpSessionListener,
Further Information about Java Servlet Technology State) passivation, and timeout javax.servlet.http.HttpSessionActivationListener, and
5. JavaServer Pages Technology HttpSessionEvent
6. JavaServer Pages Documents
7. JavaServer Pages Standard Tag Library Attribute added, removed, or javax.servlet.http.HttpSessionAttributeListener and
replaced
8. Custom Tags in JSP Pages HttpSessionBindingEvent
9. Scripting in JSP Pages
10. JavaServer Faces Technology Request A servlet request has started javax.servlet.ServletRequestListener and
11. Using JavaServer Faces Technology in JSP Pages being processed by web ServletRequestEvent
12. Developing with JavaServer Faces Technology components
13. Creating Custom UI Components
Attribute added, removed, or javax.servlet.ServletRequestAttributeListener and
14. Configuring JavaServer Faces Applications
replaced ServletRequestAttributeEvent
15. Internationalizing and Localizing Web Applications
You can specify an event listener using the deployment descriptor editor of NetBeans IDE by doing the following:
3. Double-click web.xml.
6. Click Add.
7. In the Add Listener dialog, click Browse to locate the listener class.
8. Click OK.
But you can also specify that the container should return a specific error page for a given exception. Review the deployment descriptor file included with the example to
learn how to map the exceptions exception.BookNotFound, exception.BooksNotFound, and exception.OrderException returned by the Duke’s Bookstore
application to errorpage.html.
See Mapping Errors to Error Screens for instructions on how to specify error pages using NetBeans IDE.
Copyright © 2010, Oracle and/or its affiliates. All rights reserved. Legal Notices