org.opensubsystems.core.www
Class IdListTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by org.opensubsystems.core.www.IdListTag
All Implemented Interfaces:
java.io.Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag

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

Custom tag to construct string of ids of collection of data objects presented in a request separated by ','.

Version:
$Id: IdListTag.java,v 1.6 2007/01/07 06:14:09 bastafidli Exp $
Author:
Julo Legeny
See Also:
Serialized Form
Code reviewer:
Miro Halas
Code reviewed:
1.3 2006/02/17 06:54:09 bastafidli

Field Summary
protected  java.lang.String m_strName
          Name of the request attribute contaning collection of data objects whose list of ids should be constructed.
 
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
IdListTag()
          Constructor for custom tag.
 
Method Summary
 int doEndTag()
          
 int doStartTag()
          
 java.lang.String getName()
          Returns the name
 void setName(java.lang.String strName)
          Sets the name
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_strName

protected java.lang.String m_strName
Name of the request attribute contaning collection of data objects whose list of ids should be constructed. Required.

Constructor Detail

IdListTag

public IdListTag()
Constructor for custom tag.

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 javax.servlet.jsp.tagext.TagSupport
Throws:
javax.servlet.jsp.JspException

doEndTag

public int doEndTag()
             throws javax.servlet.jsp.JspException

Specified by:
doEndTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doEndTag in class javax.servlet.jsp.tagext.TagSupport
Throws:
javax.servlet.jsp.JspException

getName

public java.lang.String getName()
Returns the name

Returns:
name

setName

public void setName(java.lang.String strName)
Sets the name

Parameters:
strName - - name that will be set


Copyright © 2003 - 2006 OpenSubsystems s.r.o.