!--a11y-->
Portal Runtime Extension 
The attribute errorPage is changed to add more flexibility for referencing a portal component that can handle and display an error in a portal page.
The following table shows the different supported value of the [page] value for the errorPage attribute:
<%@ page errorPage="[page]" autoflush="false" %>
[page] |
Directory |
Description |
.../.../errorpage.jsp |
private folders |
Redirects to the JSP relatively to the current JSP if error occurs |
prt:component:MyComponent. |
private folders |
Redirects the given component if error occurs |
prt:component:MyComponent. |
private folders |
Redirects the given component if error occurs |
prt:componentres:MyComponent. |
private folders |
Redirects to the JSP that belongs to given component |
The include directive is used to include text and/or code at JSP page translation time.
Directive/Action |
Description |
Supported |
<jsp:include page="[path]" /> |
Content is not parsed; it is included at the runtime |
Yes |
<%@ include file="[path]" %> |
Content is parsed by the JSP container |
Yes |
The following values are accepted by the portal runtime:
[path] |
Directory |
Description |
.../.../custom.jsp |
Same as current JSP |
Includes the JSP relatively to the current JSP (belongs to the current component) |
prt:componentres:MyComponent. |
private folders |
Includes the JSP that belongs to given component |
The include action is used for the inclusion of static and dynamic resources in the same context as the current page.
<Table Caption>
[path] |
Directory |
Description |
.../.../custom.jsp |
private folders |
Includes the JSP relatively to the current JSP |
prt:component:MyComponent.default |
private folders |
Includes the given component |
prt:component:MyComponent.SubComponent |
private folders |
Includes the given component |
prt:componentres:MyComponent.default,/test/another/j1.jsp |
private folders |
Includes the JSP that belongs to given component |
The following example requests the inclusion, at translation time, of a copy-right file. The file may have elements which will be processed too.
<%@include file="copyright.html " %>
Syntax
<%@include file="relativeURLspec "%>
The relativeURLSpec is relative to the private resource portal component distribution file.
