public class IncludeTag
extends javax.servlet.jsp.tagext.TagSupport
Include the file that is defined within the child Component that has the specified name. The Layout for this template must be in the "nice.layout" attribute. The name parameter will be used to obtain the child attribute from the Layout and if found the url from the child will be included. The "nice.layout" attribute for the included template will be equal to it's Component.
Example
<%@ taglib uri="http://dev.nhigh.com/taglibs/nice" prefix="nice" %>
<html>
<head>
<nhigh:Styles />
</head>
<body>
.
<nice:Include name="body" />
.
</body>
</html>
nice- A Layout bean containing the component for the current
template.Component,
Layout,
Serialized Form| Constructor and Description |
|---|
IncludeTag() |
| Modifier and Type | Method and Description |
|---|---|
int |
doEndTag()
Process the end tag.
|
int |
doStartTag()
Process the start tag.
|
String |
getName()
Get the name of the component to be included.
|
void |
setName(String name)
Set the name of the component to be included.
|
public int doEndTag()
throws javax.servlet.jsp.JspException
doEndTag in interface javax.servlet.jsp.tagext.TagdoEndTag in class javax.servlet.jsp.tagext.TagSupportjavax.servlet.jsp.JspExceptionpublic int doStartTag()
throws javax.servlet.jsp.JspException
doStartTag in interface javax.servlet.jsp.tagext.TagdoStartTag in class javax.servlet.jsp.tagext.TagSupportjavax.servlet.jsp.JspExceptionpublic String getName()
public void setName(String name)
name - the name of the child component to be includedCopyright © 2015 Revolution Systems Inc.. All rights reserved.