Home > Contents > Index >
Template Tags TOC   |    Alpha TOC   |    Tag Family TOC   |    Purpose TOC   |    Annotated TOC   |    Index 

 

render:contentserver

Renders a pagelet from the SiteCatalog table.

Syntax

Parameters

pagename (required)
d (optional)
Device Group Suffix(a string that is common suffix of all the templates written for current device group). For example, if d ='Touch' and parameter tname = 'HomeLayout', the tag will try to find a template with name tname_d i.e. HomeLayout_Touch. If it exists, the tag will call this template, otherwise will simply call the template 'HomeLayout' i.e. actual tname provided.
Input. Name of the pagelet entry in SiteCatalog to render.
args (optional)
A comma-separated list of Sites variables to be passed as arguments
render:argument (optional)
Input. Name/value pairs to pass to the called element. For example:

<render:argument name="c" value="Article"/>
<render:argument name="cid" value='<%=ics.GetVar("cid")%>'/>

Description

Use this tag to render a Sites pagelet. The pagelet name must exist in the SiteCatalog table. If the specified pagelet is already cached, this tag loads it. If the specified pagelet is not already cached, this tag caches it (if caching is enabled for it) and loads it. Note that this tag only uses the Sites cache, i.e. it is not using Satellite caching capabilities (similar to using the embedded caching style with render:calltemplate). In order to use Satellite caching capabilities, use render:satellitepage instead.

Variables passed to the ContentServer servlet are subject to the following order of precedence:

Notes

Error Numbers

There are no possible errno for this tag.

Example

This code calls for a pagelet called "My/Pagelet", passing arguments foo and bar:

    <render:contentserver pagename="My/Pagelet" args="foo">
        <render:argument name="bar" value="myValue"/>
    </render:contentserver>

It is equivalent to:

    <render:contentserver pagename="My/Pagelet">
        <render:argument name="foo" value='<%=ics.GetVar("foo")%>'/>
        <render:argument name="bar" value="myValue"/>
    </render:contentserver>

See Also

render:satellitepage

  Home > Contents > Index >

Oracle JSP Tag Reference
Copyright (c) 2013, 2019, Oracle and/or its affiliates. All rights reserved.