com.arsdigita.bebop.jsp
Class ShowPage
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
com.arsdigita.bebop.jsp.ShowComponent
com.arsdigita.bebop.jsp.ShowContainer
com.arsdigita.bebop.jsp.ShowPage
- All Implemented Interfaces:
- javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, com.arsdigita.bebop.jsp.JSPConstants, Serializable, javax.servlet.jsp.tagext.Tag
- public class ShowPage
- extends ShowContainer
Tag for showing components from a Bebop page within JSP. This
tag takes a com.arsdigita.xml.Document from the request attribute
of the same name.
This is the top-level show:... tag. You specify the page to use
either with a fully-qualified class name (e.g.,
"com.arsdigita.ui.login.UserRegistrationPage") or the path to a JSP
that builds a page and puts its XML output document in the
"com.arsdigita.xml.Document" request attribute.
The closing tag
will pass off the result XML document to another presentation manager
for rendering with XSLT.
Usage is:
<show:page [pmClass=...] [pageClass="pageClass"]>
Hi, I'm writing JSP and <b>HTML</b> code. <%= java_expression %>
<p> This doesn't even have to be well-formed HTML.
<show:component name="myBebopComponent"/>
</show:page>
Resulting XML is:
<bebop:page>
... contents from nested JSP content + tags ...
</bebop:page>
- See Also:
- Serialized Form
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 |
Method Summary |
int |
doEndTag()
Serves the result document with a presentation manager. |
int |
doStartTag()
Creates a new result document and sets up the context
within the document for nested tags to add to. |
void |
setMaster(String s)
|
void |
setPageClass(String s)
When a page class is specified as an attribute, we build
the page object and generate its XML document for use in
this JSP page. |
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
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 |
versionId
public static final String versionId
- See Also:
- Constant Field Values
ShowPage
public ShowPage()
doStartTag
public int doStartTag()
throws javax.servlet.jsp.JspException
- Creates a new result document and sets up the context
within the document for nested tags to add to. Also
sets up the context within the input document for nested
tags to retrieve relative to.
The show:page tag itself is a special case. It creates
a top-level <bebop:page> element and nothing else.
- Specified by:
doStartTag
in interface javax.servlet.jsp.tagext.Tag
- Overrides:
doStartTag
in class ShowContainer
- Throws:
javax.servlet.jsp.JspException
doEndTag
public int doEndTag()
throws javax.servlet.jsp.JspException
- Serves the result document with a presentation manager.
If this page has a master page, then pass control to
the master with the result document as a request parameter.
- Specified by:
doEndTag
in interface javax.servlet.jsp.tagext.Tag
- Overrides:
doEndTag
in class ShowContainer
- Throws:
javax.servlet.jsp.JspException
setPageClass
public void setPageClass(String s)
throws javax.servlet.jsp.JspException
- When a page class is specified as an attribute, we build
the page object and generate its XML document for use in
this JSP page.
- Throws:
javax.servlet.jsp.JspException
setMaster
public void setMaster(String s)
Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 21 2004:2337 UTC