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/10/30 00:01:55 UTC
cvs commit: jakarta-taglibs/session/src/org/apache/taglibs/session IsNewTag.java
glenn 00/10/29 15:01:55
Modified: session/src/org/apache/taglibs/session IsNewTag.java
Log:
Cleanup for release
Revision Changes Path
1.2 +13 -8 jakarta-taglibs/session/src/org/apache/taglibs/session/IsNewTag.java
Index: IsNewTag.java
===================================================================
RCS file: /home/cvs/jakarta-taglibs/session/src/org/apache/taglibs/session/IsNewTag.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- IsNewTag.java 2000/09/24 03:25:38 1.1
+++ IsNewTag.java 2000/10/29 23:01:55 1.2
@@ -1,7 +1,7 @@
/*
- * $Header: /home/cvs/jakarta-taglibs/session/src/org/apache/taglibs/session/IsNewTag.java,v 1.1 2000/09/24 03:25:38 glenn Exp $
- * $Revision: 1.1 $
- * $Date: 2000/09/24 03:25:38 $
+ * $Header: /home/cvs/jakarta-taglibs/session/src/org/apache/taglibs/session/IsNewTag.java,v 1.2 2000/10/29 23:01:55 glenn Exp $
+ * $Revision: 1.2 $
+ * $Date: 2000/10/29 23:01:55 $
*
* ====================================================================
*
@@ -68,7 +68,7 @@
import javax.servlet.jsp.tagext.*;
/**
- * JSP Tag <b>isnew</b>, used to test whether the HTTP session is new.
+ * JSP Tag <b>isnew</b>, used to test whether the HTTPSession is new.
* <p>
* Includes the body of the tag if the session is new.
* <p>
@@ -81,7 +81,7 @@
* <name>isnew</name>
* <tagclass>org.apache.taglibs.session.IsNewTag</tagclass>
* <bodycontent>JSP</bodycontent>
- * <info>Used to test whether the HTTP session is new.</info>
+ * <info>Used to determine if a session is new.</info>
* <attribute>
* <name>value</name>
* <required>false</required>
@@ -101,7 +101,7 @@
*
* @return SKIP_BODY if isnew doesn't match value, EVAL_BODY_include if isnew matches value
*/
- public int doStartTag() throws JspException
+ public final int doStartTag() throws JspException
{
boolean result = pageContext.getSession().isNew();
if( value == null ) {
@@ -114,9 +114,14 @@
return SKIP_BODY;
}
- public void setValue(String str)
+ /**
+ * Set the isnew tag optional attribute value to true
+ * or false.
+ *
+ * @param String true or false
+ */
+ public final void setValue(String str)
{
value = new Boolean(str);
}
-
}