com.acsinet_solutions.cetia4.tags.pager
Class LastTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by javax.servlet.jsp.jstl.core.ConditionalTagSupport
          extended by com.acsinet_solutions.cetia4.tags.support.LogConditionalTagSupport
              extended by com.acsinet_solutions.cetia4.tags.pager.AbstractBlockConditionTag
                  extended by com.acsinet_solutions.cetia4.tags.pager.AbstractBlockTag
                      extended by com.acsinet_solutions.cetia4.tags.pager.LastTag
All Implemented Interfaces:
BlockAccessor, java.io.Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag, javax.servlet.jsp.tagext.TryCatchFinally

public final class LastTag
extends AbstractBlockTag

Tag that displays it's contents if a last block exists. It won't be displayed if the PagedResults object has no information on how many total results exist in the database, so beware of this behavior.

Author:
Santiago Arriaga - santiago.arriaga@acsinet-solutions.com
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
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
LastTag()
           
 
Method Summary
protected  PagingBlock getBlock(PagedResults results)
          Return the block that is requested.
 
Methods inherited from class com.acsinet_solutions.cetia4.tags.pager.AbstractBlockTag
checkBlock, getPagingBlock, release, setVar
 
Methods inherited from class com.acsinet_solutions.cetia4.tags.pager.AbstractBlockConditionTag
condition
 
Methods inherited from class com.acsinet_solutions.cetia4.tags.support.LogConditionalTagSupport
doCatch, doFinally, getConfiguration, getLocale, getLogger, getPortalPath, getRequest, getServletContext, getSession
 
Methods inherited from class javax.servlet.jsp.jstl.core.ConditionalTagSupport
doStartTag, setScope
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doEndTag, 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
 

Constructor Detail

LastTag

public LastTag()
Method Detail

getBlock

protected final PagingBlock getBlock(PagedResults results)
Description copied from class: AbstractBlockConditionTag
Return the block that is requested. returns null if the block does not exist and so the tag body won´t be evaluated.

Specified by:
getBlock in class AbstractBlockConditionTag