Name
JspFragment
Synopsis
The JspFragment
class represents an object that
encapsulates a set of JSP actions and/or EL expressions, possibly
mixed with template text, that a tag handler can invoke as many times
as needed. The container creates an instance of this class for the
body of a custom action implemented by a simple tag handler, as well
as for the body of the <jsp:attribute>
for
an attribute of type JspFragment
.
Synopsis
Class name: |
javax.servlet.jsp.tagext.JspFragment |
Extends: |
None |
Implements: |
None |
Implemented by: |
Internal container-dependent class; most containers use the reference implementation of the class (developed in the Apache Jakarta project) |
Methods
-
public abstract JspContext getJspContext( )
Returns the
JspContext
that is bound to this fragment.-
public abstract void invoke(java.io.Writer out) throws JspException
Executes the fragment and directs all output to the provided
Writer
or to theJspWriter
returned by thegetOut( )
method of theJspContext
associated with the fragment if noWriter
is provided.
Get JavaServer Pages, 3rd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.