Handling Special Situations

This section discusses how to:

  • Determine pagelet running location.

  • Use refresh tags in pagelets.

You can determine whether your code is running within the portal environment (that is being invoked by means of an https request coming from a portal servlet) as opposed to running in on the system outside of the portal environment. The PeopleCode %RunningInPortal system variable returns a Boolean value that identifies the environment. This variable works in both iframe templates and HTML templates.

The order of precedence of refresh tags in pagelets is:

  1. Template

  2. Target content

  3. Pagelet

Among pagelets, the first pagelet in the HTML to include a metarefresh tag is included. Subsequently found refresh tags are not included in the HTML.