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 SetAttributeTag.java
Date Sun, 29 Oct 2000 23:02:26 GMT
glenn       00/10/29 15:02:26

  Modified:    session/src/org/apache/taglibs/session SetAttributeTag.java
  Log:
  Cleanup for release
  
  Revision  Changes    Path
  1.2       +13 -7     jakarta-taglibs/session/src/org/apache/taglibs/session/SetAttributeTag.java
  
  Index: SetAttributeTag.java
  ===================================================================
  RCS file: /home/cvs/jakarta-taglibs/session/src/org/apache/taglibs/session/SetAttributeTag.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- SetAttributeTag.java	2000/09/24 03:25:38	1.1
  +++ SetAttributeTag.java	2000/10/29 23:02:25	1.2
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-taglibs/session/src/org/apache/taglibs/session/SetAttributeTag.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/SetAttributeTag.java,v
1.2 2000/10/29 23:02:25 glenn Exp $
  + * $Revision: 1.2 $
  + * $Date: 2000/10/29 23:02:25 $
    *
    * ====================================================================
    *
  @@ -76,7 +76,7 @@
    * <name>setattribute</name>
    * <tagclass>org.apache.taglibs.session.SetAttributeTag</tagclass>
    * <bodycontent>JSP</bodycontent>
  - * <info>Sets an attribute from a session.</info>
  + * <info>Sets the value of the session attribute to the content of the tag
body.</info>
    *   <attribute>
    *     <name>name</name>
    *     <required>true</required>
  @@ -89,6 +89,7 @@
   
   public class SetAttributeTag extends BodyTagSupport
   {
  +    // Name of the session attribute to set a value for
       private String name = null;
   
       /**
  @@ -96,7 +97,7 @@
        *
        * @return EVAL_BODY_TAG
        */
  -    public int doStartTag() throws JspException
  +    public final int doStartTag() throws JspException
       {
   	return EVAL_BODY_TAG;
       }
  @@ -107,7 +108,7 @@
        *
        * @return SKIP_BODY
        */
  -    public int doAfterBody() throws JspException
  +    public final int doAfterBody() throws JspException
       {
   	// Use the body of the tag as attribute value
   	BodyContent body = getBodyContent();
  @@ -120,7 +121,12 @@
   	return SKIP_BODY;
       }
   
  -    public void setName(String str)
  +    /**
  +     * Set the required tag attribute <b>name</b>.
  +     *
  +     * @param String name of session attribute
  +     */
  +    public final void setName(String str)
       {   
   	name = str;
       }
  
  
  

Mime
View raw message