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 ExistsParameterTag.java
Date Fri, 03 Nov 2000 12:49:14 GMT
glenn       00/11/03 04:49:13

  Modified:    request/src/org/apache/taglibs/request
                        ExistsParameterTag.java
  Log:
  Cleanup for release
  
  Revision  Changes    Path
  1.2       +17 -6     jakarta-taglibs/request/src/org/apache/taglibs/request/ExistsParameterTag.java
  
  Index: ExistsParameterTag.java
  ===================================================================
  RCS file: /home/cvs/jakarta-taglibs/request/src/org/apache/taglibs/request/ExistsParameterTag.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ExistsParameterTag.java	2000/09/24 00:01:54	1.1
  +++ ExistsParameterTag.java	2000/11/03 12:49:13	1.2
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-taglibs/request/src/org/apache/taglibs/request/ExistsParameterTag.java,v
1.1 2000/09/24 00:01:54 glenn Exp $
  - * $Revision: 1.1 $
  - * $Date: 2000/09/24 00:01:54 $
  + * $Header: /home/cvs/jakarta-taglibs/request/src/org/apache/taglibs/request/ExistsParameterTag.java,v
1.2 2000/11/03 12:49:13 glenn Exp $
  + * $Revision: 1.2 $
  + * $Date: 2000/11/03 12:49:13 $
    *
    * ====================================================================
    *
  @@ -100,6 +100,7 @@
   
   public class ExistsParameterTag extends TagSupport
   {
  +    // Required attribute, parameter name
       private String name = null;
       private Boolean value = null;
   
  @@ -108,7 +109,7 @@
        *
        * @return SKIP_BODY if existsparameter doesn't match value, EVAL_BODY_include if existsparameter
matches value
        */
  -    public int doStartTag() throws JspException
  +    public final int doStartTag() throws JspException
       {
   	boolean result = false;
   	if( ((HttpServletRequest)pageContext.getRequest()).getParameter(name) != null )
  @@ -124,12 +125,22 @@
   	return SKIP_BODY;
       }
   
  -    public void setName(String str)
  +    /**
  +     * Set the required tag attribute <b>name</b>.
  +     *
  +     * @param String name of HTTP input parameter
  +     */
  +    public final void setName(String str)
       {   
   	name = str;
       }
   
  -    public void setValue(String str)
  +    /**
  +     * Set the optional tag attribute <b>value</b> to true or false. 
  +     *
  +     * @param String true or false
  +     */
  +    public final void setValue(String str)
       {
   	value = new Boolean(str);
       }
  
  
  

Mime
View raw message