jakarta-taglibs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From morg...@apache.org
Subject cvs commit: jakarta-taglibs/standard/src/org/apache/taglibs/standard/tag/common/sql SetDataSourceTagSupport.java
Date Tue, 16 Apr 2002 17:23:15 GMT
morgand     02/04/16 10:23:14

  Modified:    standard/src/org/apache/taglibs/standard/tag/common/sql
                        SetDataSourceTagSupport.java
  Log:
  fixed error when driver attribute is not set in the tag
  
  Revision  Changes    Path
  1.3       +5 -1      jakarta-taglibs/standard/src/org/apache/taglibs/standard/tag/common/sql/SetDataSourceTagSupport.java
  
  Index: SetDataSourceTagSupport.java
  ===================================================================
  RCS file: /home/cvs/jakarta-taglibs/standard/src/org/apache/taglibs/standard/tag/common/sql/SetDataSourceTagSupport.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- SetDataSourceTagSupport.java	16 Apr 2002 16:32:21 -0000	1.2
  +++ SetDataSourceTagSupport.java	16 Apr 2002 17:23:14 -0000	1.3
  @@ -113,7 +113,11 @@
           else {
               ds = new DataSourceWrapper();
               try {
  -            ds.setDriverClassName(getDriverClassName());
  +                String className = getDriverClassName();
  +                // set driver class iff provided by the tag
  +                if (className != null) {
  +                    ds.setDriverClassName(getDriverClassName());
  +                }
               }
               catch (Exception e) {
                   throw new JspTagException(
  
  
  

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


Mime
View raw message