org.shiftone.exq.tagext
Class CursorIteratorTag

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended byjavax.servlet.jsp.tagext.BodyTagSupport
          extended byorg.shiftone.exq.tagext.CursorIteratorTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.BodyTag, CursorHolder, java.io.Serializable, javax.servlet.jsp.tagext.Tag

public class CursorIteratorTag
extends javax.servlet.jsp.tagext.BodyTagSupport
implements CursorHolder, javax.servlet.jsp.tagext.BodyTag

Class CursorIteratorTag.

 <table border="1">
 <exq:iterator id="myCursor">
  <tr>
      <td> <exq:value="myCol1"> </td>
      <td> <exq:value="myCol2"> </td>
      <td> <exq:value="myCol3"> </td>
  </tr>
 </exq:iterator>
 </table>
 

Author:
Jeff Drost
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport
bodyContent
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag
EVAL_BODY_TAG
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
CursorIteratorTag()
           
 
Method Summary
 int doAfterBody()
          Method doAfterBody
 int doStartTag()
          Method doStartTag
 Cursor getCursor()
          Method getCursor
 java.lang.String getId()
          Method getId
 java.lang.Object getState(java.lang.Object key)
          Method getState Returns state data to nested tags.
 void release()
          Method release
 void setId(java.lang.String id)
          Method setId
 void setState(java.lang.Object key, java.lang.Object value)
          Method setState Useful for nested tags that need to maintain state between iterations.
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doEndTag, doInitBody, getBodyContent, getPreviousOut, setBodyContent
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getParent, getValue, getValues, removeValue, 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.BodyTag
doInitBody, setBodyContent
 
Methods inherited from interface javax.servlet.jsp.tagext.Tag
doEndTag, getParent, setPageContext, setParent
 

Constructor Detail

CursorIteratorTag

public CursorIteratorTag()
Method Detail

release

public void release()
Method release

Specified by:
release in interface javax.servlet.jsp.tagext.Tag

setId

public void setId(java.lang.String id)
Method setId

Parameters:
id -

getId

public java.lang.String getId()
Method getId


setState

public void setState(java.lang.Object key,
                     java.lang.Object value)
Method setState Useful for nested tags that need to maintain state between iterations. state HashMap is initialized here to avoid creating HashMap when state is not used.

Parameters:
key -
value -

getState

public java.lang.Object getState(java.lang.Object key)
Method getState Returns state data to nested tags.

Parameters:
key -

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Method doStartTag

Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Throws:
javax.servlet.jsp.JspException

getCursor

public Cursor getCursor()
                 throws javax.servlet.jsp.JspException
Method getCursor

Specified by:
getCursor in interface CursorHolder
Throws:
javax.servlet.jsp.JspException

doAfterBody

public int doAfterBody()
                throws javax.servlet.jsp.JspException
Method doAfterBody

Specified by:
doAfterBody in interface javax.servlet.jsp.tagext.BodyTag
Throws:
javax.servlet.jsp.JspException