What is the request scope for?
The request scope is a variable scope that has arisen from the development of Spectra. Spectra uses custom tags extensively. To avoid having to explicitly pass variables from one tag to another as attributes, the request scope was developed as a variable that is “visible” to all templates that are executed within one page request. Normally, custom tags operate within their own scope and do not have access to (cannot “see”) variables created in other tags. Request scope variables are visible to every tag called within one page’s execution. The other benefit is that if you use application variables for constants within an application, you should use cflock around all references to them, along with session and server variables. The request scope does not need to be cflocked and, as such, is ideal for storing contant values that are typically scoped as application values. So in your Application.
Related Questions
- I need to request a change of scope (equitable adjustment/change order/etc) to my old BCTC contract that has been assigned to BC Hydro. How do I do that?
- How does the scope and size of the proposed NRC inspection compare with the PSBs request?
- Why don Request scope variables need to be locked in ColdFusion 5 Server?