jakarta-taglibs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gl...@locus.apache.org
Subject cvs commit: jakarta-taglibs/session/src/org/apache/taglibs/session MaxInactiveIntervalTag.java
Date Sun, 29 Oct 2000 23:01:00 GMT
glenn       00/10/29 15:01:00

  Modified:    session/src/org/apache/taglibs/session
                        MaxInactiveIntervalTag.java
  Log:
  Cleanup for release
  
  Revision  Changes    Path
  1.2       +7 -11     jakarta-taglibs/session/src/org/apache/taglibs/session/MaxInactiveIntervalTag.java
  
  Index: MaxInactiveIntervalTag.java
  ===================================================================
  RCS file: /home/cvs/jakarta-taglibs/session/src/org/apache/taglibs/session/MaxInactiveIntervalTag.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- MaxInactiveIntervalTag.java	2000/09/24 03:25:38	1.1
  +++ MaxInactiveIntervalTag.java	2000/10/29 23:01:00	1.2
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-taglibs/session/src/org/apache/taglibs/session/MaxInactiveIntervalTag.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/MaxInactiveIntervalTag.java,v
1.2 2000/10/29 23:01:00 glenn Exp $
  + * $Revision: 1.2 $
  + * $Date: 2000/10/29 23:01:00 $
    *
    * ====================================================================
    *
  @@ -77,11 +77,6 @@
    * <tagclass>org.apache.taglibs.session.MaxInactiveIntervalTag</tagclass>
    * <bodycontent>JSP</bodycontent>
    * <info>Sets the max inactive interval in seconds using the content of the
tag body.</info>
  - *   <attribute>
  - *     <name>name</name>
  - *     <required>true</required>
  - *     <rtexprvalue>false</rtexprvalue>
  - *   </attribute>
    * </pre>
    *
    * @author Glenn Nielsen
  @@ -94,7 +89,7 @@
        *
        * @return EVAL_BODY_TAG
        */
  -    public int doStartTag() throws JspException
  +    public final int doStartTag() throws JspException
       {
   	return EVAL_BODY_TAG;
       }
  @@ -105,7 +100,7 @@
        *
        * @return SKIP_BODY
        */
  -    public int doAfterBody() throws JspException
  +    public final int doAfterBody() throws JspException
       {
   	// Use the body of the tag as number of seconds
   	BodyContent body = getBodyContent();
  @@ -120,9 +115,10 @@
   	    // set the interval
   	    pageContext.getSession().setMaxInactiveInterval(interval);
   	} catch(NumberFormatException e) {
  +	    throw new JspException(
  +		"session tag maxinactiveinterval, bad number format: " + s);
   	}
   
   	return SKIP_BODY;
       }
  -
   }
  
  
  

Mime
View raw message