Class GXJspIncludeTag
java.lang.Object
BodyTagSupport
com.sabratec.j2ee.framework.web.tags.GXAbstractTag
com.sabratec.j2ee.framework.web.tags.GXJspIncludeTag
- All Implemented Interfaces:
Serializable
This class is the root of a JSP Include file and the tag that initializes and activates the JSP Include context class.
Syntax:
This class throws the following events in the context class:
Syntax:
<gx:include gx_context="<CONTEXT CLASS>">
...
<img src=...
...
</gx:include>
This class throws the following events in the context class:
- gx_onLoad - informs about the Load event of the Include file -
com.sabratec.j2ee.framework.web.GXIWebPageContext#gx_onLoad()
- gx_preRender - informs before the HTML of the Include file is rendered -
com.sabratec.j2ee.framework.web.GXIWebPageContext#gx_preRender()
- gx_onUnload - informs of the Unload event (for cleanup) -
com.sabratec.j2ee.framework.web.GXIWebPageContext#gx_onUnload()
- gx_onError - Used for error handling - {@link com.sabratec.j2ee.framework.web.GXIWebPageContext#gx_onError(RuntimeException)()}
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal int
doEndTag()
Method called at the end of the tag.final int
Method called at the beginning of the tag.void
setGx_context
(String gx_contextName) void
setPageContext
(PageContext pageContext) Overrides theBodyTagSupport
class, and is used for initializing the current tag.Methods inherited from class com.sabratec.j2ee.framework.web.tags.GXAbstractTag
doAfterBody, getId, getInnerHTML, getMainContext, getName, setAlign, setAttributes, setBgcolor, setCssClass, setHeight, setId, setOnclick, setStyle, setTitle, setVisible, setWidth
-
Constructor Details
-
GXJspIncludeTag
public GXJspIncludeTag()
-
-
Method Details
-
setPageContext
public void setPageContext(PageContext pageContext) Description copied from class:GXAbstractTag
Overrides theBodyTagSupport
class, and is used for initializing the current tag.- Overrides:
setPageContext
in classGXAbstractTag
- Parameters:
pageContext
- The JSP page context
-
doStartTag
public final int doStartTag() throws JspExceptionMethod called at the beginning of the tag.- Overrides:
doStartTag
in classGXAbstractTag
- Returns:
- EVAL_BODY_TAG
- Throws:
JspException
- See Also:
-
BodyTagSupport#doStartTag()
-
doEndTag
public final int doEndTag() throws JspTagExceptionMethod called at the end of the tag.- Overrides:
doEndTag
in classGXAbstractTag
- Returns:
- EVAL_PAGE
- Throws:
JspTagException
-
setGx_context
public void setGx_context(String gx_contextName) throws ClassNotFoundException, IllegalAccessException, InstantiationException
-