public class IncludeTag
extends javax.servlet.jsp.tagext.TagSupport
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
clazz |
protected java.lang.String |
file |
protected java.lang.String |
id |
protected java.lang.String |
jsp |
protected Publication |
pub |
static java.lang.String |
REVISION |
protected java.lang.String |
target |
protected java.lang.String |
targetContext |
protected java.lang.String |
usage |
protected java.lang.String |
usageBackup |
Constructor and Description |
---|
IncludeTag() |
Modifier and Type | Method and Description |
---|---|
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) |
public static final java.lang.String REVISION
protected java.lang.String file
protected java.lang.String jsp
protected java.lang.String clazz
protected java.lang.String id
protected Publication pub
protected java.lang.String target
protected java.lang.String targetContext
protected java.lang.String usage
protected java.lang.String usageBackup
public void setFile(java.lang.String file)
public void setJsp(java.lang.String jsp)
public void setClazz(java.lang.String clazz)
public void setId(java.lang.String id)
setId
in class javax.servlet.jsp.tagext.TagSupport
public void setPub(Publication pub)
public void setTarget(java.lang.String target)
public void setTargetContext(java.lang.String targetContext)
public void setUsage(java.lang.String usage)
public void clean()
protected boolean notRecusiveInclude(Publication pub)
pub
- the publication to includepublic int doStartTag() throws javax.servlet.jsp.JspException
doStartTag
in interface javax.servlet.jsp.tagext.Tag
doStartTag
in class javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.JspException
public int doEndTag()
doEndTag
in interface javax.servlet.jsp.tagext.Tag
doEndTag
in class javax.servlet.jsp.tagext.TagSupport
public static void printErrorMessage(java.lang.String jsp, java.lang.String clazz, java.lang.Exception ex, javax.servlet.jsp.PageContext pageContext)
jsp
- the JSP usedclazz
- the class usedex
- the exceptionpageContext
- the given pageContextCopyright © 2001-2010 Jalios SA. All Rights Reserved.