Approaches to CSP Development
Developers create and deploy CSP pages. These pages generate the content that the application returns to the client. There are two approaches for developing CSP pages:
You can code a Caché page class directly. A CSP page class must extend %CSP.PageOpens in a new tab. Coding the page class primarily involves overriding the methods inherited from %CSP.PageOpens in a new tab. Like all Caché classes, a CSP page class must be contained in a file with the .cls extension.
You can create a mark-up page that mixes HTML and CSP mark-up together with ObjectScript or Caché Basic scripts. The CSP compiler automatically translates the mark-up page into the corresponding Caché page class before compilation. The mark-up page must be contained in a file with the .csp extension.
The second approach is generally the most convenient. Since it usually involves comparatively little Caché coding, it is especially convenient for developers without extensive Caché programming experience. This tutorial focuses on the second approach to CSP development.