net.sf.ewc.taglib
Class IncludeTag

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended byjavax.servlet.jsp.tagext.BodyTagSupport
          extended bynet.sf.ewc.taglib.EWCTag
              extended bynet.sf.ewc.taglib.IncludeTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag

public class IncludeTag
extends EWCTag

IncludeTagincludes another page within. The page to include can be static or dynamic, depending on whether the page or src parameter is set.

Author:
mballesteros
See Also:
Serialized Form

Field Summary
 
Fields inherited from class net.sf.ewc.taglib.EWCTag
out, pageContext, parent, session
 
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport
bodyContent
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id
 
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag
EVAL_BODY_BUFFERED, EVAL_BODY_TAG
 
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()
          Main constructor
 
Method Summary
 int doStartTag()
          Returns the next processing action, that will be Tag.SKIP_BODY
 void setPage(java.lang.String page)
          Sets the page to be included.
 void setSrc(java.lang.String src)
          Sets the expression that evaluates on a String with the page to be included
 
Methods inherited from class net.sf.ewc.taglib.EWCTag
doEndTag, getComponentPropertyFullExpression, getComponentPropertyValue, getComposedExpression, getContextPath, getCtx, getCtx, getCtx, getCtxPath, getCtxPath, getCtxPath, getCtxStack, getCtxStack, getEvent, getEWCSession, getExpressionValue, getExpressionValue, getExpressionValueAsString, getExpressionValueAsString, getFullExpression, getIndexedExpression, getParent, getStack, getStack, peekCtx, peekCtx, popCtx, printAttribute, printBeginTag, printEndBeginTag, printEndTag, printEndTag, pushCtx, pushCtx, pushCtx, pushCtx, release, setPageContext, setParent, substituteParentParameters
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doAfterBody, doInitBody, getBodyContent, getPreviousOut, setBodyContent
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getValue, getValues, removeValue, setId, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IncludeTag

public IncludeTag()
Main constructor

Method Detail

setSrc

public void setSrc(java.lang.String src)
Sets the expression that evaluates on a String with the page to be included

Parameters:
src - A valid expression on the current context

setPage

public void setPage(java.lang.String page)
Sets the page to be included. This parameter will not be used if src is set

Parameters:
page - The page to be included

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Returns the next processing action, that will be Tag.SKIP_BODY

Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doStartTag in class EWCTag
Returns:
The next processing action, that will be Tag.SKIP_BODY
Throws:
javax.servlet.jsp.JspException


Copyright © 2003-2004 SourceForge. All Rights Reserved.