You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-dev@jakarta.apache.org by gl...@locus.apache.org on 2000/11/03 13:48:34 UTC
cvs commit: jakarta-taglibs/request/src/org/apache/taglibs/request ExistsAttributeTag.java
glenn 00/11/03 04:48:33
Modified: request/src/org/apache/taglibs/request
ExistsAttributeTag.java
Log:
Cleanup for release
Revision Changes Path
1.2 +16 -6 jakarta-taglibs/request/src/org/apache/taglibs/request/ExistsAttributeTag.java
Index: ExistsAttributeTag.java
===================================================================
RCS file: /home/cvs/jakarta-taglibs/request/src/org/apache/taglibs/request/ExistsAttributeTag.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- ExistsAttributeTag.java 2000/09/24 00:00:29 1.1
+++ ExistsAttributeTag.java 2000/11/03 12:48:32 1.2
@@ -1,7 +1,7 @@
/*
- * $Header: /home/cvs/jakarta-taglibs/request/src/org/apache/taglibs/request/ExistsAttributeTag.java,v 1.1 2000/09/24 00:00:29 glenn Exp $
- * $Revision: 1.1 $
- * $Date: 2000/09/24 00:00:29 $
+ * $Header: /home/cvs/jakarta-taglibs/request/src/org/apache/taglibs/request/ExistsAttributeTag.java,v 1.2 2000/11/03 12:48:32 glenn Exp $
+ * $Revision: 1.2 $
+ * $Date: 2000/11/03 12:48:32 $
*
* ====================================================================
*
@@ -108,7 +108,7 @@
*
* @return SKIP_BODY if existsattribute doesn't match value, EVAL_BODY_include if existsattribute matches value
*/
- public int doStartTag() throws JspException
+ public final int doStartTag() throws JspException
{
boolean result = false;
if( pageContext.getRequest().getAttribute(name) != null )
@@ -124,12 +124,22 @@
return SKIP_BODY;
}
- public void setName(String str)
+ /**
+ * Set the required tag attribute <b>name</b>.
+ *
+ * @param String name of request attribute
+ */
+ public final void setName(String str)
{
name = str;
}
- public void setValue(String str)
+ /**
+ * Set the optional tag attribute <b>value</b> to true or false.
+ *
+ * @param String true or false
+ */
+ public final void setValue(String str)
{
value = new Boolean(str);
}