com.fatwire.gst.foundation.taglib
Class PageTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by javax.servlet.jsp.tagext.BodyTagSupport
          extended by com.fatwire.gst.foundation.taglib.GsfRootTag
              extended by com.fatwire.gst.foundation.taglib.PageTag
All Implemented Interfaces:
Serializable, javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag

public class PageTag
extends GsfRootTag

JSP tag that replaces the GsfRoot tag and adds Action support. If the action name argument is provided, than a Action is looked up and executed.

Since:
Apr 13, 2011
Author:
Dolf Dijkstra
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.fatwire.gst.foundation.taglib.GsfRootTag
ASSET_DAO, ICS_VARIABLE_NAME, VARIABLE_SCOPE_NAME
 
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport
bodyContent
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag
EVAL_BODY_BUFFERED, EVAL_BODY_TAG
 
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
PageTag()
           
 
Method Summary
 int doStartTag()
           
 String getAction()
           
protected  ActionLocator getActionLocator()
           
 DefaultIncludeService getJspIncludeService()
          This is a discovery method to be used by the IncludeTag class.
 void release()
           
 void setAction(String action)
           
 
Methods inherited from class com.fatwire.gst.foundation.taglib.GsfRootTag
doEndTag, getICS
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doAfterBody, doInitBody, getBodyContent, getPreviousOut, setBodyContent
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.servlet.jsp.tagext.Tag
getParent, setPageContext, setParent
 

Constructor Detail

PageTag

public PageTag()
Method Detail

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doStartTag in class GsfRootTag
Throws:
javax.servlet.jsp.JspException

getActionLocator

protected ActionLocator getActionLocator()
Returns:
the ActionLocator

getAction

public String getAction()
Returns:
the action

setAction

public void setAction(String action)
Parameters:
action - the action to set

getJspIncludeService

public DefaultIncludeService getJspIncludeService()
This is a discovery method to be used by the IncludeTag class. The contract is that PageTag and IncludeTag work together and that the includeService is made available on the PageTag jsp tag as loaded by the jsp page. An alternative would be to add this object to the pageContext. It was chosen not to do this as maintaining it on the tag reduces scope and possible intermingling by the accidental developer.

Returns:
the IncludeService

release

public void release()
Specified by:
release in interface javax.servlet.jsp.tagext.Tag
Overrides:
release in class javax.servlet.jsp.tagext.BodyTagSupport


Copyright © 2010-2013 Oracle Corporation. All Rights Reserved.