Show TOC Entering content frame

This graphic is explained in the accompanying text Elements of a layoutTemplate.jsp File Locate the document in its SAP Library structure

Example 1

This example shows the layoutTemplate.jsp of the fullWidth layout supplied with the portal installation.

 

fullWidth.jsp

<%@ taglib

uri="prt:taglib:com.sap.portal.reserved.layout.TagLibHtmlb"

prefix="hbj" %>

<%@ taglib

uri="prt:taglib:com.sap.portal.reserved.layout.TagLibLayout"

prefix="lyt" %>

 

<lyt:template>

<hbj:content id="myContext">

<hbj:page title="Portal Page">

<lyt:container id="the_container_id"/>

</hbj:page>

</hbj:content>

</lyt:template>

 

Example 2

This example shows the fullPage.jsp file displaying the use of epPageVariables in bolded code.

 

<%@ taglib uri="prt:taglib:com.sap.portal.reserved.layout.TagLibHtmlb" prefix="hbj" %>

<%@ taglib uri="prt:taglib:com.sap.portal.reserved.layout.TagLibLayout" prefix="lyt" %>

 

<%@ page import="com.sapportals.portal.useragent.IUserAgent" %>

<%@ page import="com.sapportals.portal.useragent.IUserAgentConstants" %>

<%@page import="com.sapportals.portal.pb.layout.taglib.variabledef.RunMode" %>

<%

RunMode pageRunMode;

IUserAgent pageUserAgent;

String pageUserAgentType;

%>

<lyt:template>

<%

//Resolve page RunMode

pageRunMode = epPageVariables.getRunMode();

 

//Resolve page UserAgent

pageUserAgent = epPageVariables.getUserAgent();

pageUserAgentType = pageUserAgent.getType();

%>

<hbj:content id= "myContext">

<hbj:page title="Portal Page">

<%

                                       if(pageRunMode == RunMode.RUN_TIME) {.....}//optionally use RunMode.DESIGN_TIME

                                       if(pageUserAgentType.equals(IUserAgentConstants.UA_TYPE_MSIE)) {...}

< /FONT>                  %>

<lyt:container id="the_container_id" />

</hbj:page>

</hbj:content>

</lyt:template>< /p>

 

 

 

Leaving content frame