This release of Caché includes several significant enhancements to the Caché Server Page (CSP) technology. These are outlined below.
Note:
The CSP Gateway uses a new, more efficient protocol for communications between the Web Server and Caché. If you need to communicate with older versions of Caché, you can do so by specifying the version of Caché you wish to talk to on the Default Parameters page of the CSP configuration page.
Localization
CSP now includes a sophisticated localization mechanism for easily developing localized Web applications that can change languages dynamically. This mechanism includes an XML-based database of localized text message as well as specialized CSP tags.
For more information refer to the http://localhost/csp/samples/language.csp samples as well as the Localization chapter of Using Caché Server Pages (CSP).
CSP Runtime Enhancements
The CSP runtime includes many enhancements.
Cookie-less Deployment
The CSP runtime now detects if a browser does not accept cookies. In this case, it automatically switches to use a URL-rewriting technique to keep track of sessions.
Java-less Hyperevents
CSP now supports a new #call syntax for invoking server methods from within a client browser.
#call is implemented using standard HTML and JavaScript and does not require the use of any Java applets within the client browser.
Higher Performance
There are numerous improvements to the CSP Gateway that should result in higher performance for most applications.
CSP Search Page
The CSP Search page (and <csp:SEARCH> tag) has many enhancements:
UTF URLs
You can now create UTF URLs from Javascript using new cspEncodeUTF8 function.
SOAP Support
The CSP Gateway has been enhanced for use with the Caché SOAP interface.
CSP Development-time Enhancements
There are a number of new features designed to make it easier to build CSP applications.
Caché Studio
The Studio includes a lot more support for developing CSP pages.
CSP Rules Engine
There is a new version of the CSP Rule Compiler. The code executed when a rule is matched is now implemented using methods of classes that are generated by the Rule Compiler. This means that 1) rules can be more powerful, 2) rules can be created directly as classes, and 3) rule classes can be viewed/edited within Studio.
There is a new OnMatch callback to allow all matching rules to modify the CSP DOM.
CSP Compiler
The CSP Compiler has many improvements:
CSP Include
It is now possible to use include files within CSP pages.
For an example of server-side include refer to the http://localhost/csp/samples/include.csp sample page.
SQL Queries
There are several enhancements related to using SQL within CSP pages:
CSP Tag Documentation
There is a new, online reference of all CSP tags as well as the most common standard HTML tags.
CSP Sample Pages
There are several new CSP sample pages (available at http://localhost/csp/samples/menu.csp) including:
xml*.csp
There are a number of new pages demonstrating XML capabilities.
language.csp
Demonstrates the use of the new Localization mechanism.
include.csp
Demonstrates the use of the new Include mechanism.
staticsql.csp
Demonstrates use of embedded SQL within a CSP page.