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/jdbc/src/org/apache/taglibs/jdbc/connection ConnectionTag.java
Date Wed, 31 Jan 2001 00:52:20 GMT
morgand     01/01/30 16:52:20

  Modified:    jdbc/src/org/apache/taglibs/jdbc/connection
                        ConnectionTag.java
  Log:
  now using findAttribute() method of PageContext to find the datasource
  
  Revision  Changes    Path
  1.2       +1 -1      jakarta-taglibs/jdbc/src/org/apache/taglibs/jdbc/connection/ConnectionTag.java
  
  Index: ConnectionTag.java
  ===================================================================
  RCS file: /home/cvs/jakarta-taglibs/jdbc/src/org/apache/taglibs/jdbc/connection/ConnectionTag.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ConnectionTag.java	2001/01/08 21:17:01	1.1
  +++ ConnectionTag.java	2001/01/31 00:52:20	1.2
  @@ -181,7 +181,7 @@
   
         Connection conn = null;
         if (_dataSourceName != null) {
  -        DataSource dataSource = (DataSource) pageContext.getAttribute(_dataSourceName);
  +        DataSource dataSource = (DataSource) pageContext.findAttribute(_dataSourceName);
           if (_userId != null) {
             conn = dataSource.getConnection(_userId, _password);
           } else {
  
  
  

Mime
View raw message