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/request/src/org/apache/taglibs/request QueryStringsTag.java
Date Fri, 03 Nov 2000 12:54:04 GMT
glenn       00/11/03 04:54:04

  Modified:    request/src/org/apache/taglibs/request QueryStringsTag.java
  Log:
  Cleanup for release
  
  Revision  Changes    Path
  1.2       +21 -16    jakarta-taglibs/request/src/org/apache/taglibs/request/QueryStringsTag.java
  
  Index: QueryStringsTag.java
  ===================================================================
  RCS file: /home/cvs/jakarta-taglibs/request/src/org/apache/taglibs/request/QueryStringsTag.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- QueryStringsTag.java	2000/10/15 18:29:17	1.1
  +++ QueryStringsTag.java	2000/11/03 12:54:03	1.2
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-taglibs/request/src/org/apache/taglibs/request/QueryStringsTag.java,v
1.1 2000/10/15 18:29:17 glenn Exp $
  - * $Revision: 1.1 $
  - * $Date: 2000/10/15 18:29:17 $
  + * $Header: /home/cvs/jakarta-taglibs/request/src/org/apache/taglibs/request/QueryStringsTag.java,v
1.2 2000/11/03 12:54:03 glenn Exp $
  + * $Revision: 1.2 $
  + * $Date: 2000/11/03 12:54:03 $
    *
    * ====================================================================
    *
  @@ -117,7 +117,7 @@
        *
        * @return SKIP_BODY if no querystring or querystring parameter with <b>name</b>
is not found, EVAL_BODY_TAG if querystring parameter exists
        */
  -    public int doStartTag() throws JspException
  +    public final int doStartTag() throws JspException
       {
   	// Get the request
   	String qs =
  @@ -163,7 +163,7 @@
        *
        * @return EVAL_BODY_TAG if there is another querystring, or SKIP_BODY if there are
no more querystrings or this is a named querystring
        */
  -    public int doAfterBody() throws JspException
  +    public final int doAfterBody() throws JspException
       {
   	// See if this is the last or a named querystring
   	if( name != null || !querystrings.hasMoreTokens() )
  @@ -188,7 +188,7 @@
        * Method called at end of Tag
        * @return EVAL_PAGE
        */
  -    public int doEndTag() throws JspException
  +    public final int doEndTag() throws JspException
       {
   	try
   	{
  @@ -201,7 +201,12 @@
   	return EVAL_PAGE;
       }
   
  -    public void setName(String str)
  +    /**
  +     * Set the optional tag attribute <b>name</b>.
  +     *
  +     * @param String name of input parameter in querystring
  +     */
  +    public final void setName(String str)
       {
   	name = str;
       }
  @@ -209,11 +214,11 @@
       /**
        * Returns the name of the querystring parameter.
        * <p>
  -     * &lt;jsp:getProperty name=<i>"id"</i> property="parameter"/&gt;
  +     * &lt;jsp:getProperty name=<i>"id"</i> property="name"/&gt;
        *
  -     * @return String the querystring parameter name as a String
  +     * @return String - querystring parameter name as a String
        */
  -    public String getParameter()
  +    public final String getName()
       {
   	if( parameter == null )
   	    return "";
  @@ -225,9 +230,9 @@
        * <p>
        * &lt;jsp:getProperty name=<i>"id"</i> property="value"/&gt;
        *
  -     * @return String the value of the querystring parameter as a String
  +     * @return String - value of the querystring parameter as a String
        */
  -    public String getValue()
  +    public final String getValue()
       {
   	if( value == null )
   	    return "";
  @@ -239,9 +244,9 @@
        * <p>                                 
        * &lt;jsp:getProperty name=<i>"id"</i> property="queryString"/&gt;
     
        *                                                                
  -     * @return String the entire querystring parameter/value as a String
  +     * @return String - entire querystring parameter/value as a String
        */                                               
  -    public String getQueryString()
  +    public final String getQueryString()
       {                            
           if( query == null )
               return "";
  @@ -251,9 +256,9 @@
       /**
        * Remove the script variable after querystrings 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);
       }
   }
  
  
  

Mime
View raw message