jakarta-taglibs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From felip...@apache.org
Subject cvs commit: jakarta-taglibs/dbtags/src/org/apache/taglibs/dbtags/connection ConnectionTag.java
Date Sat, 28 Feb 2004 02:15:44 GMT
felipeal    2004/02/27 18:15:44

  Modified:    dbtags/src/org/apache/taglibs/dbtags/connection
                        ConnectionTag.java
  Log:
  fix for bug 5921
  
  Revision  Changes    Path
  1.7       +4 -0      jakarta-taglibs/dbtags/src/org/apache/taglibs/dbtags/connection/ConnectionTag.java
  
  Index: ConnectionTag.java
  ===================================================================
  RCS file: /home/cvs/jakarta-taglibs/dbtags/src/org/apache/taglibs/dbtags/connection/ConnectionTag.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- ConnectionTag.java	27 Feb 2004 02:47:55 -0000	1.6
  +++ ConnectionTag.java	28 Feb 2004 02:15:44 -0000	1.7
  @@ -215,6 +215,10 @@
           }
         } else if (_dataSourceName != null) {
           dataSource = (DataSource) pageContext.findAttribute(_dataSourceName);
  +        if ( dataSource == null ) {
  +          throw new JspTagException("Did not find DataSource for JNDI name " + _dataSourceName
);
  +        }
  +        
           if (_userId != null) {
             conn = dataSource.getConnection(_userId, _password);
           } else {
  
  
  

---------------------------------------------------------------------
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