O'Reilly logo

ColdFusion 9 Developer Tutorial by John Farrar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Processing request events

In ColdFusion, inside the Application.cfc file, there are several standard events: onApplicationStart(), onSessionStart(), onRequestStart(), and others. Many ColdFusion-based MVC frameworks have standard events inside the controllers. The COOP page controller follows the same concept. The following are the common event methods in the coprocessor (COOP controllers):

  • onPageStart()
  • onFirstCall()
  • onPostBack()
  • beforeViewCall()
  • onPageEnd()

Event model for the coprocessor

COOP handles calling the events methods at the proper time. The following diagram illustrates the flow of the request. We can see that after the page start method is called, COOP chooses to either call the onFirstCall() or onPostBack() method. As illustrated, the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required