com.macvu.tiles.taglib
Class CacheInsertTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by org.apache.struts.taglib.tiles.DefinitionTagSupport
          extended by org.apache.struts.taglib.tiles.InsertTag
              extended by com.macvu.tiles.taglib.CacheInsertTag
All Implemented Interfaces:
java.io.Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.Tag, org.apache.struts.taglib.tiles.ComponentConstants, org.apache.struts.taglib.tiles.PutListTagParent, org.apache.struts.taglib.tiles.PutTagParent
Direct Known Subclasses:
CacheGetTag

public class CacheInsertTag
extends org.apache.struts.taglib.tiles.InsertTag

See Also:
Serialized Form

Nested Class Summary
protected  class CacheInsertTag.CacheInsertHandler
           
 
Nested classes/interfaces inherited from class org.apache.struts.taglib.tiles.InsertTag
org.apache.struts.taglib.tiles.InsertTag.DirectStringHandler, org.apache.struts.taglib.tiles.InsertTag.InsertHandler, org.apache.struts.taglib.tiles.InsertTag.TagHandler
 
Field Summary
protected static org.apache.commons.logging.Log log
           
 
Fields inherited from class org.apache.struts.taglib.tiles.InsertTag
attribute, beanName, beanProperty, beanScope, cachedCurrentContext, definitionName, flush, isErrorIgnored, name, pageContext, processEndTag, ROLE_DELIMITER, tagHandler
 
Fields inherited from class org.apache.struts.taglib.tiles.DefinitionTagSupport
controllerName, controllerType, page, role
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id
 
Fields inherited from interface org.apache.struts.taglib.tiles.ComponentConstants
COMPONENT_CONTEXT, COMPONENT_SCOPE, EXCEPTION_KEY, LOCALE_KEY
 
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
CacheInsertTag()
           
 
Method Summary
protected  void doInclude(java.lang.String page, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.ServletContext servletContext)
          Do an include of specified page.
protected  org.apache.struts.taglib.tiles.InsertTag.TagHandler processDefinition(org.apache.struts.tiles.ComponentDefinition definition)
          End of Process tag attribute "definition".
 
Methods inherited from class org.apache.struts.taglib.tiles.InsertTag
createTagHandler, doEndTag, doInclude, doStartTag, getBeanName, getBeanProperty, getBeanScope, getDefinitionName, getFlush, getIgnore, getName, getPageContext, processAsDefinitionOrURL, processAttribute, processBean, processDefinitionName, processName, processNestedTag, processNestedTag, processObjectValue, processTypedAttribute, processUrl, putAttribute, putAttribute, release, releaseInternal, setAttribute, setBeanName, setBeanProperty, setBeanScope, setComponent, setDefinition, setFlush, setFlush, setIgnore, setName, setPageContext, userHasRole
 
Methods inherited from class org.apache.struts.taglib.tiles.DefinitionTagSupport
getControllerName, getControllerType, getPage, getRole, getTemplate, setController, setControllerClass, setControllerName, setControllerType, setControllerUrl, setPage, setRole, setTemplate
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static org.apache.commons.logging.Log log
Constructor Detail

CacheInsertTag

public CacheInsertTag()
Method Detail

processDefinition

protected org.apache.struts.taglib.tiles.InsertTag.TagHandler processDefinition(org.apache.struts.tiles.ComponentDefinition definition)
                                                                         throws javax.servlet.jsp.JspException
End of Process tag attribute "definition". Overload definition with tag attributes "template" and "role". Then, create appropriate tag handler.

Overrides:
processDefinition in class org.apache.struts.taglib.tiles.InsertTag
Parameters:
definition - Definition to process.
Returns:
Appropriate TagHandler.
Throws:
javax.servlet.jsp.JspException - InstantiationException Can't create requested controller

doInclude

protected void doInclude(java.lang.String page,
                         javax.servlet.http.HttpServletRequest request,
                         javax.servlet.http.HttpServletResponse response,
                         javax.servlet.ServletContext servletContext)
                  throws javax.servlet.ServletException,
                         java.io.IOException
Do an include of specified page. This method is used internally to do all includes from this class. It delegates the include call to the TilesUtil.doInclude().

Parameters:
page - The page that will be included
Throws:
javax.servlet.ServletException - - Thrown by call to pageContext.include()
java.io.IOException - - Thrown by call to pageContext.include()


Copyright © 2005 MacVu group. All Rights Reserved.