com.opensymphony.webwork.views.jsp
Class IncludeTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
com.opensymphony.webwork.views.jsp.WebWorkBodyTagSupport
com.opensymphony.webwork.views.jsp.IncludeTag
- All Implemented Interfaces:
- BodyTag, IterationTag, ParamTag.Parametric, Serializable, Tag
- public class IncludeTag
- extends WebWorkBodyTagSupport
- implements ParamTag.Parametric
Include a servlet's output (result of servlet or a JSP page).
- Version:
- $Revision: 1.15 $
- Author:
- Rickard ???berg (rickard@dreambean.com), Scott Farquhar
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
params
protected Map params
pageAttr
protected String pageAttr
valueAttr
protected String valueAttr
IncludeTag
public IncludeTag()
getContextRelativePath
public static String getContextRelativePath(ServletRequest request,
String relativePath)
include
public static void include(String aResult,
PageContext aContext)
throws ServletException,
IOException
- Throws:
ServletException
IOException
setPage
public void setPage(String aPage)
- Deprecated. use value attribute instead
- Name of page/servlet to include.
- Parameters:
aPage
-
getParameters
public Map getParameters()
- Specified by:
getParameters
in interface ParamTag.Parametric
setValue
public void setValue(String aName)
- Name of property whose value is the name of the page/servlet to include.
- Parameters:
aName
-
addParameter
public void addParameter(String name,
Object value)
- Add a parameter to the URL of the included page/servlet.
- Specified by:
addParameter
in interface ParamTag.Parametric
- Parameters:
name
- value
-
doEndTag
public int doEndTag()
throws JspException
- Specified by:
doEndTag
in interface Tag
- Throws:
JspException
doStartTag
public int doStartTag()
throws JspException
- Specified by:
doStartTag
in interface Tag
- Throws:
JspException