com.softslate.commerce.customer.core
Class AppInsertTag

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended byorg.apache.struts.taglib.tiles.DefinitionTagSupport
          extended byorg.apache.struts.taglib.tiles.InsertTag
              extended bycom.softslate.commerce.customer.core.AppInsertTag
All Implemented Interfaces:
org.apache.struts.taglib.tiles.ComponentConstants, javax.servlet.jsp.tagext.IterationTag, org.apache.struts.taglib.tiles.PutListTagParent, org.apache.struts.taglib.tiles.PutTagParent, java.io.Serializable, javax.servlet.jsp.tagext.Tag

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

Author:
dtobey
See Also:
Serialized Form

Nested Class Summary
 
Nested classes 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
(package private) static org.apache.commons.logging.Log log
           
private static long serialVersionUID
           
static java.lang.String systemLayoutDirectory
          The name of the directory under the "WEB-INF/layouts" directory in the application distribution where the system's default jsp templates reside.
 
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
AppInsertTag()
           
 
Method Summary
protected  void doInclude(java.lang.String uri)
          Override the regular forward to use the user's custom layout, if any.
 
Methods inherited from class org.apache.struts.taglib.tiles.InsertTag
createTagHandler, doEndTag, doStartTag, getBeanName, getBeanProperty, getBeanScope, getDefinitionName, getFlush, getIgnore, getName, getPageContext, processAsDefinitionOrURL, processAttribute, processBean, processDefinition, 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

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

log

static org.apache.commons.logging.Log log

systemLayoutDirectory

public static final java.lang.String systemLayoutDirectory
The name of the directory under the "WEB-INF/layouts" directory in the application distribution where the system's default jsp templates reside.

See Also:
Constant Field Values
Constructor Detail

AppInsertTag

public AppInsertTag()
Method Detail

doInclude

protected void doInclude(java.lang.String uri)
                  throws javax.servlet.ServletException,
                         java.io.IOException
Override the regular forward to use the user's custom layout, if any. Replaces pages matching the system layout directory with the user's custom layout directory. If the resulting page doesn't map to an existing file, uses the original instead.

This same process happens in BaseRequestProcessor to handle forwards coming from the Struts request.

Parameters:
uri - 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 © SoftSlate, Inc. 2003–2005