You are here: Reference > Streams and JSP > JavaServer Pages tags > withReference

  withReference JavaServer Page tag

JavaServer Pages tags

Use the withReference tag to identify a new property as the active property for a limited scope. The new property applies only to HTML or XML code within the body of the withReference tag.

Here is an example:

<pega:withReference name=".pyStatusWork" >
      <!-- XML or HTML source here -->
</pega:withReference>

Within the scope of this tag, you can use the keyword $this-value to identify the active property set by this tag.

Complete syntax

In the syntax presentations below:

<pega:withReference name="myReference" >
    Enter your HTML text and JSP tags here.

</pega:withReference>

The name reference is required.

Attribute

Value

name

A reference to the new property that is to become the current active property. For example:

  • A single scalar destination property
  • $this — for the current page
  • $this.propertyname
Definitions active property

Up About JavaServer Page tags