Examples of JSP Files with Different Page Layouts
Example 1
You want to use the following page layout with three horizontally-arranged areas in the Web Page Composer:
To do this, create a JSP file with the following content:
<%@ taglib uri="prt:taglib:com.sap.portal.reserved.layout.WpcTagLibLayout" prefix="sdn"%>
<%@ taglib uri="prt:taglib:com.sap.portal.reserved.layout.TagLibLayout" prefix="lyt" %>
<lyt:template>
<table id="SAPexample1" border="0" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td valign="top">
<div>
<sdn:container id="top" />
</div>
</td>
</tr>
<tr>
<td valign="middle">
<div>
<sdn:container id="middle" />
</div>
</td>
</tr>
<tr>
<td valign="bottom">
<div>
<sdn:container id="bottom" />
</div>
</td>
</tr>
</table>
</lyt:template>
You can find the information on this page layout that is required for the portalapp.xml file in Example: portalapp.xml .
Example 2
You want to use the following page layout in the Web Page Composer:
To do this, create a JSP file with the following content:
<%@ taglib uri="prt:taglib:com.sap.portal.reserved.layout.WpcTagLibLayout" prefix="sdn"%>
<%@ taglib uri="prt:taglib:com.sap.portal.reserved.layout.TagLibLayout" prefix="lyt" %>
<lyt:template>
<table id="SAPexample2" border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody>
<tr>
<td colspan="3" width="100%">
<sdn:container id="top" />
</td>
</tr>
<tr>
<td width="20%">
<sdn:container id="left" />
</td>
<td width="60%">
<sdn:container id="middle" />
</td>
<td width="20%">
<sdn:container id="right" />
</td>
</tr>
</tbody>
</table>
</lyt:template>
You can find the information on this page layout that is required for the portalapp.xml file in Example: portalapp.xml .