com.jalios.jcms.taglib
Class IncludeTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
com.jalios.jcms.taglib.IncludeTag
- All Implemented Interfaces:
- java.io.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 |
|
Method Summary |
void |
clean()
|
int |
doEndTag()
|
int |
doStartTag()
|
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) |
static void |
printErrorMessage(java.lang.String jsp,
java.lang.String clazz,
java.lang.Exception ex,
javax.servlet.jsp.PageContext pageContext)
Print an Exception message in log and in JSP (if developement mode) |
void |
setClazz(java.lang.String clazz)
|
void |
setFile(java.lang.String file)
|
void |
setId(java.lang.String id)
|
void |
setJsp(java.lang.String jsp)
|
void |
setPub(Publication pub)
|
void |
setTarget(java.lang.String target)
|
void |
setTargetContext(java.lang.String targetContext)
|
void |
setUsage(java.lang.String usage)
|
| 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 java.lang.String REVISION
- See Also:
- Constant Field Values
file
protected java.lang.String file
jsp
protected java.lang.String jsp
clazz
protected java.lang.String clazz
id
protected java.lang.String id
pub
protected Publication pub
target
protected java.lang.String target
targetContext
protected java.lang.String targetContext
usage
protected java.lang.String usage
usageBackup
protected java.lang.String usageBackup
IncludeTag
public IncludeTag()
setFile
public void setFile(java.lang.String file)
setJsp
public void setJsp(java.lang.String jsp)
setClazz
public void setClazz(java.lang.String clazz)
setId
public void setId(java.lang.String id)
- Overrides:
setId in class javax.servlet.jsp.tagext.TagSupport
setPub
public void setPub(Publication pub)
setTarget
public void setTarget(java.lang.String target)
setTargetContext
public void setTargetContext(java.lang.String targetContext)
setUsage
public void setUsage(java.lang.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(java.lang.String jsp,
java.lang.String clazz,
java.lang.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.