com.jalios.jcms.taglib
Class IncludeTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by 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

Field Summary
protected  String clazz
           
protected  String file
           
protected  String id
           
protected  String jsp
           
protected  Publication pub
           
static String REVISION
           
protected  String target
           
protected  String targetContext
           
protected  String usage
           
protected  String usageBackup
           
 
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
 
Constructor Summary
IncludeTag()
           
 
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(String jsp, String clazz, Exception ex, javax.servlet.jsp.PageContext pageContext)
          Print an Exception message in log and in JSP (if developement mode)
 void setClazz(String clazz)
           
 void setFile(String file)
           
 void setId(String id)
           
 void setJsp(String jsp)
           
 void setPub(Publication pub)
           
 void setTarget(String target)
           
 void setTargetContext(String targetContext)
           
 void setUsage(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
 

Field Detail

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
Constructor Detail

IncludeTag

public IncludeTag()
Method Detail

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 used
clazz - the class used
ex - the exception
pageContext - the given pageContext


Copyright © 2001-2010 Jalios SA. All Rights Reserved.