se.kmr.scam.web.taglib.tiles
Class IncludeTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
se.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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IncludeTag
public IncludeTag()
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.