Package com.appslandia.plum.tags
Class IncludeTag
- java.lang.Object
-
- com.appslandia.plum.tags.TagBase
-
- com.appslandia.plum.tags.IncludeTag
-
-
Field Summary
Fields Modifier and Type Field Description protected Stringactionprotected StringcacheKeyprotected StringcacheNameprotected Stringcontrollerprotected StringerrorKeyprotected Map<String,Object>paramsstatic StringREQUEST_ATTRIBUTE_INCLUDE_PARAMS-
Fields inherited from class com.appslandia.plum.tags.TagBase
jspBody, pageContext, parentTag
-
-
Constructor Summary
Constructors Constructor Description IncludeTag()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringbuildContent(RequestContext childContext)protected RequestAttributescreateBackupAttributes(javax.servlet.http.HttpServletRequest request)protected RequestContextcreateChildRequestContext()voiddoTag()protected voidhandleException(Exception ex)protected StringresultToString(Object result, String characterEncoding)voidsetAction(String action)voidsetCacheKey(String cacheKey)voidsetCacheName(String cacheName)voidsetController(String controller)voidsetDynamicAttribute(String uri, String name, Object value)voidsetErrorKey(String errorKey)-
Methods inherited from class com.appslandia.plum.tags.TagBase
evalJspBody, getModelState, getPageContext, getParent, getRequest, getRequestContext, getResponse, setJspBody, setJspContext, setParent
-
-
-
-
Field Detail
-
REQUEST_ATTRIBUTE_INCLUDE_PARAMS
public static final String REQUEST_ATTRIBUTE_INCLUDE_PARAMS
- See Also:
- Constant Field Values
-
controller
protected String controller
-
action
protected String action
-
errorKey
protected String errorKey
-
cacheKey
protected String cacheKey
-
cacheName
protected String cacheName
-
-
Method Detail
-
setDynamicAttribute
public void setDynamicAttribute(String uri, String name, Object value) throws javax.servlet.jsp.JspException
- Specified by:
setDynamicAttributein interfacejavax.servlet.jsp.tagext.DynamicAttributes- Throws:
javax.servlet.jsp.JspException
-
createBackupAttributes
protected RequestAttributes createBackupAttributes(javax.servlet.http.HttpServletRequest request)
-
buildContent
protected String buildContent(RequestContext childContext) throws Exception
- Throws:
Exception
-
doTag
public void doTag() throws javax.servlet.jsp.JspException, IOException- Specified by:
doTagin interfacejavax.servlet.jsp.tagext.SimpleTag- Throws:
javax.servlet.jsp.JspExceptionIOException
-
resultToString
protected String resultToString(Object result, String characterEncoding) throws IOException
- Throws:
IOException
-
handleException
protected void handleException(Exception ex) throws javax.servlet.jsp.JspException, IOException
- Throws:
javax.servlet.jsp.JspExceptionIOException
-
createChildRequestContext
protected RequestContext createChildRequestContext()
-
setController
@Attribute(required=true, rtexprvalue=false) public void setController(String controller)
-
setAction
@Attribute(required=true, rtexprvalue=false) public void setAction(String action)
-
setErrorKey
@Attribute(required=false, rtexprvalue=false) public void setErrorKey(String errorKey)
-
setCacheKey
@Attribute(required=true, rtexprvalue=false) public void setCacheKey(String cacheKey)
-
setCacheName
@Attribute(required=false, rtexprvalue=false) public void setCacheName(String cacheName)
-
-