The Common-Controls Tag Library


The tag checks the existence of a JSP-fragment and in case of success, executes the Body-Content.
The tag may only be used within a <template:insert>-tag. It can thus, in particular, be used in a JSP template, since these are located in the Scope of a <template:insert>-tag!

Body content: JSP
Tag class: PresentTag

[ Syntax ]

Standard Syntax
name = "String"
...Body Content...


[ Attributes ]

nameString Specifies the logical name of a JSP-fragment.

Annotation: The name must match with a placeholder in the JSP template used. The template is defined in the enclosing <template:insert>-tag.

[ Example ]

The <template:present>-tag is used in a template to output an optional search screen.

<%@ taglib uri="" prefix="template" %>


<table width="100%" cellspacing="0" cellpadding="0">
    <!--  Display search dialog  -->
    <template:present name="search">
        <td><template:get name="search"/></td>
        <td><template:get name="mainmenu"/></td>