com.jalios.jcms.taglib
Class IncludeTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
com.jalios.jcms.taglib.IncludeTag
- All Implemented Interfaces:
- Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag
public class IncludeTag
- extends javax.servlet.jsp.tagext.TagSupport
- See Also:
- Serialized Form
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
pageContext |
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag |
EVAL_BODY_AGAIN |
Fields inherited from interface javax.servlet.jsp.tagext.Tag |
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setPageContext, setParent, setValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
REVISION
public static final String REVISION
- See Also:
- Constant Field Values
file
protected String file
jsp
protected String jsp
clazz
protected String clazz
id
protected String id
pub
protected Publication pub
target
protected String target
targetContext
protected String targetContext
usage
protected String usage
usageBackup
protected String usageBackup
IncludeTag
public IncludeTag()
setFile
public void setFile(String file)
setJsp
public void setJsp(String jsp)
setClazz
public void setClazz(String clazz)
setId
public void setId(String id)
- Overrides:
setId
in class javax.servlet.jsp.tagext.TagSupport
setPub
public void setPub(Publication pub)
setTarget
public void setTarget(String target)
setTargetContext
public void setTargetContext(String targetContext)
setUsage
public void setUsage(String usage)
clean
public void clean()
notRecusiveInclude
protected boolean notRecusiveInclude(Publication pub)
- Check if the current publication or the current portal element
is a children of the given publication to include (Usin TreeNode Hierarchy)
- Parameters:
pub
- the publication to include
- Returns:
- boolean false if it is a recursive include.
doStartTag
public int doStartTag()
throws javax.servlet.jsp.JspException
- Specified by:
doStartTag
in interface javax.servlet.jsp.tagext.Tag
- Overrides:
doStartTag
in class javax.servlet.jsp.tagext.TagSupport
- Throws:
javax.servlet.jsp.JspException
doEndTag
public int doEndTag()
- Specified by:
doEndTag
in interface javax.servlet.jsp.tagext.Tag
- Overrides:
doEndTag
in class javax.servlet.jsp.tagext.TagSupport
printErrorMessage
public static void printErrorMessage(String jsp,
String clazz,
Exception ex,
javax.servlet.jsp.PageContext pageContext)
- Print an Exception message in log and in JSP (if developement mode)
- Parameters:
jsp
- the JSP usedclazz
- the class usedex
- the exceptionpageContext
- the given pageContext
Copyright © 2001-2010 Jalios SA. All Rights Reserved.