Back Forward url JavaServer Page tag

JavaServer Pages tags

Advanced featureThe url tag provides a means to include a Uniform Resource Locator string into the output HTML produced by stream processing.

The url tag has options related to navigation, target frames, and the primary page. COLEA/CLINB 11/8/02 removed CONTEXT option OLSOK 1/22/02 Options promote transaction integrity between the client browser session and the requestor state on the PRPC server. You can use the url tag to avoid synchronization problems that can arise if a user clicks the browser's Back button rather than using navigation provided in HTML displays.

Wherever you insert an anchor or a submit button into your HTML, you can use the url tag. If you use the url tag with a submit button, work with the FORM tag as well.

Here is an example of the url tag used with an anchor.

<A HREF="<pega:url value="pyStream=myStream" >
<option name="long">
</pega:url >" >
<B>My Anchor Text</B></A>

CautionCaution: As a best practice for security reasons, confirm that URL obfuscation is enabled on systems that support applications that use the URL JSP tag. Additionally, if your application dynamically determines the parameters to the JSP tag through JavaScript code (and URL obfuscation is enabled), use the standard SafeURL JavaScript functions to obfuscate the URL. SafeURL documentation is at Help > APIs > Desktop > Safe URL.

Definitions Alert log, Common Gateway Interface, expired page, URL obfuscation
Related topic Understanding alerts

Up JavaServer Page tags