Package org.iplass.mtp.web.template.tags
Class IncludeTag
java.lang.Object
javax.servlet.jsp.tagext.SimpleTagSupport
org.iplass.mtp.web.template.tags.IncludeTag
- All Implemented Interfaces:
javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.tagext.SimpleTag
public class IncludeTag
extends javax.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 javax.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:
doTagin interfacejavax.servlet.jsp.tagext.SimpleTag- Overrides:
doTagin classjavax.servlet.jsp.tagext.SimpleTagSupport- Throws:
javax.servlet.jsp.JspExceptionIOException
-