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:51:51 UTC

cvs commit: jakarta-taglibs/request/src/org/apache/taglibs/request ParameterValuesTag.java

glenn       00/11/03 04:51:51

  Modified:    request/src/org/apache/taglibs/request
                        ParameterValuesTag.java
  Log:
  Cleanup for release
  
  Revision  Changes    Path
  1.2       +12 -24    jakarta-taglibs/request/src/org/apache/taglibs/request/ParameterValuesTag.java
  
  Index: ParameterValuesTag.java
  ===================================================================
  RCS file: /home/cvs/jakarta-taglibs/request/src/org/apache/taglibs/request/ParameterValuesTag.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ParameterValuesTag.java	2000/09/21 14:14:35	1.1
  +++ ParameterValuesTag.java	2000/11/03 12:51:51	1.2
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-taglibs/request/src/org/apache/taglibs/request/ParameterValuesTag.java,v 1.1 2000/09/21 14:14:35 glenn Exp $
  - * $Revision: 1.1 $
  - * $Date: 2000/09/21 14:14:35 $
  + * $Header: /home/cvs/jakarta-taglibs/request/src/org/apache/taglibs/request/ParameterValuesTag.java,v 1.2 2000/11/03 12:51:51 glenn Exp $
  + * $Revision: 1.2 $
  + * $Date: 2000/11/03 12:51:51 $
    *
    * ====================================================================
    *
  @@ -85,7 +85,7 @@
    * <tagclass>org.apache.taglibs.request.ParameterValuesTag</tagclass>
    * <teiclass>org.apache.taglibs.request.ParameterValuesTEI</teiclass>
    * <bodycontent>JSP</bodycontent>
  - * <info>Used to loop through all parameters or get a single parameter.</info>
  + * <info>Used to get the name and values of a single parameter.</info>
    *   <attribute>
    *     <name>id</name>
    *     <required>true</required>
  @@ -108,7 +108,7 @@
        *
        * @return SKIP_BODY if no parameter values exist, EVAL_BODY_TAG if parameter values exist
        */
  -    public int doStartTag() throws JspException
  +    public final int doStartTag() throws JspException
       {
   	// Get the parent parameters tag
   	ParametersTag pt;
  @@ -140,7 +140,7 @@
        *
        * @return EVAL_BODY_TAG if there is another parameter value, or SKIP_BODY if there are no more parameter values
        */
  -    public int doAfterBody() throws JspException
  +    public final int doAfterBody() throws JspException
       {
   	parameter_num++;
   	// See if this is the last parameter value
  @@ -157,7 +157,7 @@
        * Method called at end of Tag
        * @return EVAL_PAGE
        */
  -    public int doEndTag() throws JspException
  +    public final int doEndTag() throws JspException
       {
   	try
   	{
  @@ -171,25 +171,13 @@
       }
   
       /**
  -     * Returns the name of the parameter.
  -     * <p>
  -     * &lt;jsp:getProperty name=<i>"id"</i> property="name"/&gt;
  -     *
  -     * @return the parameter name as a String
  -     */
  -    public String getName()
  -    {
  -	return parameter;
  -    }
  -
  -    /**
        * Returns the value of the parameter.
        * <p>
  -     * &lt;jsp:getProperty name=<i>"id"</i> property="parameter"/&gt;
  +     * &lt;jsp:getProperty name=<i>"id"</i> property="value"/&gt;
        *
  -     * @return the value of the parameter as a String
  +     * @return String - value of the parameter
        */
  -    public String getParameter()
  +    public final String getValue()
       {
   	return value;
       }
  @@ -197,9 +185,9 @@
       /**
        * Remove the script variable after parametervalues tag closed out
        */
  -    public void release()
  +    public final void release()
       {
  -	if( id.length() > 0 )
  +	if( id != null && id.length() > 0 )
   	    pageContext.removeAttribute(id,PageContext.PAGE_SCOPE);
       }
   }