com.taggercat.tags
Class RowIDTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by com.taggercat.tags.RowIDTag
All Implemented Interfaces:
java.io.Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag

public class RowIDTag
extends javax.servlet.jsp.tagext.TagSupport

This tag prints the unique tcEntity id for the current tcEntity in the specified data source. Example usage is:
<input type="radio" name="orderDetail.rowID" value="<tc:rowID dsn='orderDetail' />" >

See Also:
Serialized Form
 

Field Summary
 
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
RowIDTag()
           
 
Method Summary
 int doStartTag()
          Processes the tag.
 void setDsn(java.lang.String dsn)
          Sets the name of the data source the rowID is created for.
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RowIDTag

public RowIDTag()
Method Detail

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Processes the tag.

Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doStartTag in class javax.servlet.jsp.tagext.TagSupport
Throws:
javax.servlet.jsp.JspTagException
javax.servlet.jsp.JspException
Returns:
SKIP_BODY this tag does not create a body

setDsn

public void setDsn(java.lang.String dsn)
Sets the name of the data source the rowID is created for.

Parameters:
dsn - the new dsn value