TAILIEUCHUNG - ColdFusion Developer’s Guide phần 3

Xin lưu ý rằng nội dung trong hướng dẫn này được bảo vệ theo luật bản quyền ngay cả khi nó không phải là phân phối cùng với phần mềm bao gồm một thỏa thuận giấy phép người sử dụng. Nội dung của hướng dẫn này được trang bị để sử dụng thông tin, có thể thay đổi mà không cần thông báo, và không nên được hiểu như là một cam kết của | ADOBE COLDFUSION 8 227 ColdFusion Developer s Guide Using application event handlers The following table briefly describes the application event CFC methods that you can implement including when they are triggered. The following sections describe how to use these methods in more detail. Method When run onApplicationStart The application first starts when the first request for a page is processed or the first CFC method is invoked by an event gateway instance Flash Remoting request or a web service invocation. This method is useful for setting application-wide Application scope variables such as the names of data sources. onApplicationEnd The application ends when the application times out or the server shuts down. onSessionStart A new session is created as a result of a request that is not in an existing session including ColdFusion event gateway sessions. The application must enable sessions for this event to happen. onSessionEnd A session time-out setting is reached. This event is not triggered when the application ends or the server shuts down. onRequestStart ColdFusion receives any of the following a request an HTTP request for example from a browser a message to an event gateway a SOAP request or a Flash Remoting request. onRequest The onRequestStart event has completed. This method can act as a filter for the requested page content. onRequestEnd All pages and CFCs in the request have been processed equivalent to the page. onMissingTemplate When ColdFusion receives a request for a nonexistent page. onError When an exception occurs that is not caught by a try catch block. When ColdFusion receives a request it instantiates the Application CFC and runs the code in the following order CFC initialization code at the top of the file onApplicationStart if not run before for this application onSessionStart if not run before for this session onRequestStart onRequest or the requested page if there is no onRequest method onRequestEnd The

TỪ KHÓA LIÊN QUAN
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.