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 Sun, 03 Dec 2000 01:38:16 GMT
glenn       00/12/02 17:38:16

  Modified:    request/src/org/apache/taglibs/request
                        ExistsParameterTag.java
  Log:
  Parameter exists only if it has length
  
  Revision  Changes    Path
  1.3       +5 -4      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.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ExistsParameterTag.java	2000/11/03 12:49:13	1.2
  +++ ExistsParameterTag.java	2000/12/03 01:38:15	1.3
  @@ -1,7 +1,7 @@
   /*
  - * $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 $
  + * $Header: /home/cvs/jakarta-taglibs/request/src/org/apache/taglibs/request/ExistsParameterTag.java,v
1.3 2000/12/03 01:38:15 glenn Exp $
  + * $Revision: 1.3 $
  + * $Date: 2000/12/03 01:38:15 $
    *
    * ====================================================================
    *
  @@ -112,7 +112,8 @@
       public final int doStartTag() throws JspException
       {
   	boolean result = false;
  -	if( ((HttpServletRequest)pageContext.getRequest()).getParameter(name) != null )
  +	String tmp = ((HttpServletRequest)pageContext.getRequest()).getParameter(name);
  +	if( tmp != null && tmp.length() > 0 )
   	    result = true;
   
   	if( value == null ) {
  
  
  

Mime
View raw message