Chapter 7. EVENT HANDLING AND SENSITIVE FORM RESUBMISSIONS

Topics in this Chapter

  • Event Handling for a Model 2 Framework

  • Sensitive Form Resubmissions

    • Trapping Form Resubmissions with a Model 2 Framework

    • Trapping Form Resubmissions Without a Framework

  • Conclusion

Event handling is a mainstay of traditional graphical user interfaces; for example, Swing provides numerous event handlers for a wide variety of events, such as mouse, window, and focus events.

Prior to the Servlet 2.3 Specification, servlet containers only fired events when objects were placed in, or removed from, a session.[1] The Servlet 2.3 Specification adds support for application life cycle events, so which lets developers can react to the creation and invalidation of servlet contexts and ...

Get Advanced JavaServer Pages™ now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.