docs.intersystems.com
Caché Server Pages QuickStart
Approaches to CSP Development
[Home] [Back] [Next]
InterSystems: The power behind what matters   
Search:    

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:

  1. You can code a Caché page class directly. A CSP page class must extend %CSP.Page. Coding the page class primarily involves overriding the methods inherited from %CSP.Page. Like all Caché classes, a CSP page class must be contained in a file with the .cls extension.
  2. 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.


Send us comments on this page
Copyright © 1997-2019 InterSystems Corporation, Cambridge, MA