Specifying a template and template elements
To use a template and template elements, a page uses the Jakarta Struts custom template tags, described in Table 2-5.
Table 2-5 Struts template tags Specifies the text or file to use for a template element such as the name, banner, side menu, or content elementsThe custom template tags define the JSPs to use for the template and the custom elements that the template specifies to build the user interface. For example, the template:insert tag in the following code applies querytemplate.jsp settings to the page. The first template:put tag accesses the localized string for the title of the page. The remaining template:put tags specify that the template use banner and content elements using the files specified in each tag.
The following code example is an extract from <context root>\iportal\activePortal\private\newrequest\newrequest.jsp.
<template:insert template="/iportal/activePortal/private/templates/querytemplate.jsp"><template:put name="content"
content="/iportal/activePortal/private/newrequest
/newrequestpage.jsp" />The following tables show JSPs affected by template changes. Table 2-6 lists the Information Console templates and the pages that use them.
Table 2-6 Templates for JSPs jobs\getrequesterjobdetails.jsp
jobs\requesterjoboperationstatus.jsp
newrequest\newrequest.jsp
newrequest\submitjobstatus.jsp
query\create.jsp
query\execute.jsp common\errors\errorpage.jsp
customization\fileupload.jsp
newrequest\newrequest2.jsp
query\confirmation.jsp
query\fileexists.jsp
query\runconfirmation.jsp channels\channellist.jsp
channels\channelnoticelist.jsp
channels\channeloperationstatus.jsp
channels\channelsubscribe.jsp
customization\skinedit.jsp
customization\skinmanager.jsp
filesfolders\createfolder.jsp
filesfolders\deletefilestatus.jsp
filesfolders\filedetail.jsp
filesfolders\filefolderlist.jsp
filesfolders\privilege.jsp
filesfolders\search\filefolderlist.jsp
jobs\getjobdetails.jsp
jobs\joboperationstatus.jsp
jobs\selectjobs.jsp
newrequest\submitjobstatus.jsp
options\options.jsp
(c) Copyright Actuate Corporation 2011 |
![]() |