org.infoglue.deliver.taglib.common
Class SublistTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by org.infoglue.deliver.taglib.AbstractTag
          extended by org.infoglue.deliver.taglib.common.SublistTag
All Implemented Interfaces:
java.io.Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.Tag

public class SublistTag
extends AbstractTag

This class implements the <common:sublist> tag, which stores the sublist of a specified list in the page context variable specified by the id attribute.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
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
SublistTag()
          Default constructor.
 
Method Summary
 int doEndTag()
          Process the end tag.
 void setCount(java.lang.String count)
          Sets the count attribute to the specified count.
 void setList(java.lang.String list)
          Sets the list attribute to the specified list.
 void setStartIndex(int startIndex)
          Sets the start index attribute to the specified index.
 
Methods inherited from class org.infoglue.deliver.taglib.AbstractTag
evaluate, evaluateCollection, evaluateInteger, evaluateList, evaluateString, produceResult, setId, setResultAttribute, write
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doStartTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SublistTag

public SublistTag()
Default constructor.

Method Detail

doEndTag

public int doEndTag()
             throws javax.servlet.jsp.JspException
Process the end tag. Stores the sublist in the specified page context variable.

Specified by:
doEndTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doEndTag in class javax.servlet.jsp.tagext.TagSupport
Returns:
indication of whether to continue evaluating the JSP page.
Throws:
javax.servlet.jsp.JspException - if an error occurred while processing this tag.

setList

public void setList(java.lang.String list)
             throws javax.servlet.jsp.JspException
Sets the list attribute to the specified list.

Parameters:
list - the list to use.
Throws:
javax.servlet.jsp.JspException - if an error occurs while evaluating the list.

setStartIndex

public void setStartIndex(int startIndex)
Sets the start index attribute to the specified index.

Parameters:
index - the index to use.

setCount

public void setCount(java.lang.String count)
              throws javax.servlet.jsp.JspException
Sets the count attribute to the specified count. A count of zero indicates all remaining elements.

Parameters:
count - the count to use.
Throws:
javax.servlet.jsp.JspException - if an error occurs while evaluating the count.


Copyright © 2005 InfoGlue.org All Rights Reserved.