Package org.iplass.mtp.web.template.tags
Class IncludeTag
java.lang.Object
jakarta.servlet.jsp.tagext.SimpleTagSupport
org.iplass.mtp.web.template.tags.IncludeTag
- All Implemented Interfaces:
jakarta.servlet.jsp.tagext.JspTag
,jakarta.servlet.jsp.tagext.SimpleTag
public class IncludeTag
extends jakarta.servlet.jsp.tagext.SimpleTagSupport
別Action、TemplateをincludeするためのJSPタグです。
TemplateUtil.include(String, PageContext)
もしくは、TemplateUtil.includeTemplate(String, PageContext)
を呼び出します。
利用例:Actionをinclude
<%@page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@taglib prefix="m" uri="http://iplass.org/tags/mtp"%> : <m:include action="your/action/path" />
利用例:Templateをinclude
<%@page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@taglib prefix="m" uri="http://iplass.org/tags/mtp"%> : <m:include template="your/template/path" />
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class jakarta.servlet.jsp.tagext.SimpleTagSupport
findAncestorWithClass, getJspBody, getJspContext, getParent, setJspBody, setJspContext, setParent
-
Constructor Details
-
IncludeTag
public IncludeTag()
-
-
Method Details
-
getAction
-
setAction
-
getTemplate
-
setTemplate
-
doTag
- Specified by:
doTag
in interfacejakarta.servlet.jsp.tagext.SimpleTag
- Overrides:
doTag
in classjakarta.servlet.jsp.tagext.SimpleTagSupport
- Throws:
jakarta.servlet.jsp.JspException
IOException
-