jakarta-taglibs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pier...@apache.org
Subject cvs commit: jakarta-taglibs/standard/src/org/apache/taglibs/standard/tlv JstlSqlTLV.java
Date Wed, 28 May 2003 00:27:42 GMT
pierred     2003/05/27 17:27:42

  Modified:    standard/src/org/apache/taglibs/standard/tlv Tag:
                        STANDARD_1_0_BRANCH JstlSqlTLV.java
  Log:
  Fix for bug #20197.
  [Thanks to Felipe Leme for reporting it and submitting a patch.]
  <sql:setDataSource> allows the specification of a scope without
  a var attribute to set the configuration setting.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.7.2.1   +2 -1      jakarta-taglibs/standard/src/org/apache/taglibs/standard/tlv/JstlSqlTLV.java
  
  Index: JstlSqlTLV.java
  ===================================================================
  RCS file: /home/cvs/jakarta-taglibs/standard/src/org/apache/taglibs/standard/tlv/JstlSqlTLV.java,v
  retrieving revision 1.7
  retrieving revision 1.7.2.1
  diff -u -r1.7 -r1.7.2.1
  --- JstlSqlTLV.java	19 Apr 2002 21:59:15 -0000	1.7
  +++ JstlSqlTLV.java	28 May 2003 00:27:41 -0000	1.7.2.1
  @@ -155,7 +155,8 @@
                       SCOPE, qn, a.getValue(SCOPE))); 
   	    if (qn.startsWith(prefix + ":") && hasEmptyVar(a))
   		fail(Resources.getMessage("TLV_EMPTY_VAR", qn));
  -	    if (qn.startsWith(prefix + ":") && hasDanglingScope(a))
  +	    if (qn.startsWith(prefix + ":") && hasDanglingScope(a) &&
  +                !qn.startsWith(prefix + ":" + SETDATASOURCE))
   		fail(Resources.getMessage("TLV_DANGLING_SCOPE", qn));
   
   	    // now, modify state
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-dev-help@jakarta.apache.org


Mime
View raw message