Converting from directives to JavaServer Page tags |
PRPC provides automated conversion facilities that translate most directives into equivalent JSP tags.
Use of JSP tags rather than directives is recommended for new applications and upgraded older applications. Use of JSP tags is required for applications which are to be localized.
Use of JSP tags rather than directives offers these benefits:
To simplify this transition, your application can use directives in some stream rule instances and JSP tags in others. (Don't attempt to use both forms in a single rule.)
In many cases, you can use the automated conversion described here to convert directives to the equivalent JSP tag forms. If you can save the JSP-converted form of the rule without errors, the updated rule operates identically to the original directive-based version.
These instructions apply to these rule types, which are derived from the Rule-Stream class:
To update a rule containing directives to contain equivalent JSP tags:
HTML
.JSP
.Certain constructs and Version 02-02 PublicAPI calls are not permitted in stream rules that depend on JavaServer Page tags. These conditions are detected and reported as errors when you attempt to save the rule.
1. A JSP tag cannot reference a rule that does not yet exist or is in a RuleSet or Version not on your RuleSet list. (You can reference a rule that exists but is marked as unavailable.)
2. Page names appearing in the HTML or XML text must also appear on the
Pages & Classes tab.
3. Some Version 02-02 PublicAPI methods including the following are not supported. These are rare.
4. In the attributes of the <pega:when > tag, you cannot reference both a JavaScript and another when tag option (such as a when condition rule or the $mode-input
option). Also, complex expressions that use the two Java operators ||
and && may fail to convert or operate correctly at runtime.
5. A circumstance-qualified or time-qualified rule derived from the Rule-Stream class (for example, control rules) and the corresponding base rule must both use JSP tags, or both use directives. If you convert a rule that is a base rule for qualified rules, convert all the qualified rules also.
About JavaServer Pages tags | |
How to complete a Pages & Classes tab |