Bug 7736

Summary: <sql-rt:update> and <sql-rt:transaction> do not support data sources of type String
Product: Taglibs Reporter: Jan Luehe <jan.luehe>
Component: Standard TaglibAssignee: Tomcat Developers Mailing List <dev>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: Other   
OS: other   

Description Jan Luehe 2002-04-03 23:23:27 UTC
I just looked at the DataSource setter method for <sql-rt:update>,
and noticed that String is not supported as a dataSource type:

    public void setDataSource(DataSource dataSource) {
	this.dataSource = dataSource;
    }
    
This is different from <sql:update> (and inconsistent w/ the
spec), where both String and DataSource types are supported/required.

Same is true for <sql-rt:transaction>.

Only <sql-rt:query> supports both DataSource and String, as required.
Comment 1 Justyna Horwat 2002-04-04 02:23:23 UTC
Fixed the runtime setter methods to accept both String and DataSource types.