Back Forward bundle JavaServer Page tag

JavaServer Pages tags

Use the bundle JSP tag within a static JSP tag to identify the first key part of a static file bundle rule to be included in the current stream. PROJ-322 5.4 A static file bundle rule identifies a list of JavaScript or Cascading Style Sheet files to be sent to a browser session together in one HTTP response, to reduce HTTP traffic and improve response time to the browser user.

For example:

<pega:static type="script" app="webwb" >
     <pega:bundle name="pega_tools" />
     <pega:bundle name="Acmestyles" />
</pega:static>

This tag references two static file rules pega_tools.script and Acmestyles.script, which in turn may identify multiple text file rules (Rule-File-Text rule type) containing JavaScript scripts.

At runtime, the system uses rule resolution to find the static content rule, and uses rule resolution again to find each referenced text file rule identified in the static content bundle.

Complete syntax

In the syntax presentation below:

<pega:bundle name="myname" />

The name attribute is required.

When to use

If your application includes JavaScript files, CSS files, or other static content saved in multiple text file rules that are needed together at runtime on the user workstation, group them into a bundle.

TipFor example, when entering HTML source code directly into the HTML tab of a control rule (or similar form), you can minimize the size of the resulting HTML document with the <pega:onlyonce >, <pega:bundle> and <pega:static > tags. See Including only one copy of JavaScript code in More About HTML property rules.

Attribute

Value

name

First key part of a static content bundle rule (Rule-File-Bundle rule type). The enclosing static JSP tag identifies the second key part of the rule.

Definition static content
Related topics static JSP tag
About Static File Bundle rules

UpJavaServer Page tags