webwork.view.taglib
Class IncludeTag

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended byjavax.servlet.jsp.tagext.BodyTagSupport
          extended bywebwork.view.taglib.WebWorkBodyTagSupport
              extended bywebwork.view.taglib.IncludeTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, ParamTag.Parametric, java.io.Serializable, javax.servlet.jsp.tagext.Tag

public class IncludeTag
extends WebWorkBodyTagSupport
implements ParamTag.Parametric

Include a servlets output (For example, result of servlet, or a JSP page).

Version:
$Revision: 1.20 $
Author:
Rickard Öberg (rickard@dreambean.com), Scott Farquhar
See Also:
Serialized Form

Field Summary
protected  java.lang.String pageAttr
           
protected  java.util.Map params
           
protected  java.lang.String valueAttr
           
 
Fields inherited from class webwork.view.taglib.WebWorkBodyTagSupport
stack
 
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport
bodyContent
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
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()
           
 
Method Summary
 void addParameter(java.lang.String name, java.lang.Object value)
          Add a parameter to the URL of the included page/servlet.
 int doEndTag()
           
 int doStartTag()
           
static java.lang.String getContextRelativePath(javax.servlet.ServletRequest request, java.lang.String relativePath)
           
static void include(java.lang.String aResult, javax.servlet.jsp.PageContext aContext)
           
 void setPage(java.lang.String aPage)
          Deprecated. use value attribute instead
 void setValue(java.lang.String aName)
          Name of property whose value is the name of the page/servlet to include.
 
Methods inherited from class webwork.view.taglib.WebWorkBodyTagSupport
findString, findValue, getStack, release, setPageContext, setParent, toString
 
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, getParent, getValue, getValues, removeValue, setId, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.servlet.jsp.tagext.Tag
getParent
 

Field Detail

pageAttr

protected java.lang.String pageAttr

valueAttr

protected java.lang.String valueAttr

params

protected java.util.Map params
Constructor Detail

IncludeTag

public IncludeTag()
Method Detail

include

public static void include(java.lang.String aResult,
                           javax.servlet.jsp.PageContext aContext)
                    throws javax.servlet.ServletException,
                           java.io.IOException
Throws:
javax.servlet.ServletException
java.io.IOException

getContextRelativePath

public static java.lang.String getContextRelativePath(javax.servlet.ServletRequest request,
                                                      java.lang.String relativePath)

setPage

public void setPage(java.lang.String aPage)
Deprecated. use value attribute instead

Name of page/servlet to include.

Parameters:
aPage -

setValue

public void setValue(java.lang.String aName)
Name of property whose value is the name of the page/servlet to include.

Parameters:
aName -

addParameter

public void addParameter(java.lang.String name,
                         java.lang.Object value)
Add a parameter to the URL of the included page/servlet.

Specified by:
addParameter in interface ParamTag.Parametric
Parameters:
name -
value -

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Throws:
javax.servlet.jsp.JspException

doEndTag

public int doEndTag()
             throws javax.servlet.jsp.JspException
Specified by:
doEndTag in interface javax.servlet.jsp.tagext.Tag
Throws:
javax.servlet.jsp.JspException


Copyright © 2001-2003 WebWork All Rights Reserved.