se.kmr.scam.web.taglib.tiles
Class IncludeTag

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended byjavax.servlet.jsp.tagext.BodyTagSupport
          extended byse.kmr.scam.web.taglib.tiles.IncludeTag
All Implemented Interfaces:
BodyTag, IterationTag, Serializable, Tag

public class IncludeTag
extends BodyTagSupport

Includes a file (JSP) into current JSP.
Parameter values is provided by enclosing a put-tag.
Examples:
Includes the page foo.jsp

a value Includes the page bar.jsp and passes the named value, the value "a value" is available in request scope under the name baz.

Version:
$Revision: 1.5 $
Author:
Jöran
See Also:
Serialized Form
Created:
den 12 april 2003

Field Summary
 
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 addParam(String name, Object value)
          Add a parameter prsented to the included page
 int doEndTag()
          Receives end-of-tag notification
 int doStartTag()
          Receives start-of-tag notification.
 void setPage(String page)
          Set the including JSP.
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doAfterBody, doInitBody, getBodyContent, getPreviousOut, release, setBodyContent
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, 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, setPageContext, setParent
 

Constructor Detail

IncludeTag

public IncludeTag()
Method Detail

setPage

public void setPage(String page)
Set the including JSP.

Parameters:
page - URI to the page.

addParam

public void addParam(String name,
                     Object value)
Add a parameter prsented to the included page


doStartTag

public int doStartTag()
               throws JspException
Receives start-of-tag notification.

Returns:
the value of EVAL_BODY_TAG
Throws:
JspException

doEndTag

public int doEndTag()
             throws JspException
Receives end-of-tag notification

Returns:
the value of EVAL_PAGE
Throws:
JspException


Copyright © 2003 SCAM. All Rights Reserved.