Bug 7736 - <sql-rt:update> and <sql-rt:transaction> do not support data sources of type String
Summary: <sql-rt:update> and <sql-rt:transaction> do not support data sources of type ...
Alias: None
Product: Taglibs
Classification: Unclassified
Component: Standard Taglib (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
Depends on:
Reported: 2002-04-03 23:23 UTC by Jan Luehe
Modified: 2004-11-16 19:05 UTC (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
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.