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.
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.
The CSP runtime includes many enhancements.
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.
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.
There are numerous improvements to the CSP Gateway that should result
in higher performance for most applications.
The CSP Search page (and <csp:SEARCH> tag) has many enhancements:
-
A CONTAINS predicate for performing CONTAINS searches.
-
A DISPLAY mode to control how search results are displayed.
-
Better character set handling for non-US locales.
You can now create UTF URLs from Javascript using new
cspEncodeUTF8 function.
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.
The Studio includes a lot more support for developing CSP pages.
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.
The CSP Compiler has many improvements:
-
Large CSP files are split into multiple methods.
-
There is better formatting of generated code.
-
Within rules, name/value pairs may be stored within the compiler
context (
%compiler) by the user.
It is now possible to use include files within CSP pages.
There are several enhancements related to using SQL within CSP pages:
-
You can specify how query values are displayed (using display
or logical values).
-
You can define queries that use embedded SQL within a page
(instead of dynamic) for higher performance using the <script language="ESQL">
tag as well as the <script language="ESQL" cursor="abc"> and <csp:WHILE
cursor="abc"> tags.
There is a new,
online reference of all CSP
tags as well as the most common standard HTML tags.
There are a number of new pages demonstrating XML capabilities.
Demonstrates the use of the new Localization mechanism.
Demonstrates the use of the new Include mechanism.
Demonstrates use of embedded SQL within a CSP page.