Show TOC

Background documentationInclude Directive Locate this document in the navigation structure

 

The include directive enables you to add the content produced by a portal component, in addition to another JSP page or a static page.

Directive

Description

<jsp:include page="[path]" />

The file is either a static or a dynamic resource that is included in the output, as is. Use this directive for HTML and other static or dynamic content.

<%@ include file="[path]" %>

The file is considered as JSP code or a static content (text). It is parsed and executed before it is added to the output.

The following values are valid for the page or file attribute:

Type of Resource

Syntax

JSP or HTML page in the current portal component

myInclude.html or myIncludes/myInclude.html

The value is a path, relative to the JSP page.

JSP or HTML page in another portal component

prt:componentres:MyApp.MyComp, myIncludes/myInclude.html

Portal component

(for page attribute only)

prt:component:MyApp.MyComp

MyApp.MyComp is a full-qualified name of a component.