Class JspFragmentHelper
java.lang.Object
jakarta.servlet.jsp.tagext.JspFragment
org.apache.jasper.runtime.JspFragmentHelper
Helper class from which all Jsp Fragment helper classes extend. This class allows for the emulation of numerous
fragments within a single class, which in turn reduces the load on the class loader since there are potentially many
JspFragments in a single page.
The class also provides various utility methods for JspFragment implementations.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final PageContextThe page context associated with this fragment, cast from the JSP context.protected final intDiscriminator value used to identify the specific fragment within a multi-fragment class.protected final JspContextThe JSP context associated with this fragment.protected final JspTagThe parent tag that owns this fragment. -
Constructor Summary
ConstructorsConstructorDescriptionJspFragmentHelper(int discriminator, JspContext jspContext, JspTag parentTag) Creates a new JspFragmentHelper instance. -
Method Summary
Modifier and TypeMethodDescriptionReturns the JspContext that is bound to this JspFragment.Returns the parent tag that owns this fragment.Methods inherited from class JspFragment
invoke
-
Field Details
-
discriminator
protected final int discriminatorDiscriminator value used to identify the specific fragment within a multi-fragment class. -
jspContext
The JSP context associated with this fragment. -
_jspx_page_context
The page context associated with this fragment, cast from the JSP context. -
parentTag
The parent tag that owns this fragment.
-
-
Constructor Details
-
JspFragmentHelper
Creates a new JspFragmentHelper instance.- Parameters:
discriminator- the fragment discriminator valuejspContext- the JSP context for this fragmentparentTag- the parent tag
-
-
Method Details
-
getJspContext
Description copied from class:jakarta.servlet.jsp.tagext.JspFragmentReturns the JspContext that is bound to this JspFragment.- Specified by:
getJspContextin classJspFragment- Returns:
- The JspContext used by this fragment at invocation time.
-
getParentTag
Returns the parent tag that owns this fragment.- Returns:
- the parent tag
-