Bug 6822 - default SQL datasource behavior doesn't follow documentation
Summary: default SQL datasource behavior doesn't follow documentation
Status: RESOLVED FIXED
Alias: None
Product: Taglibs
Classification: Unclassified
Component: Standard Taglib (show other bugs)
Version: unspecified
Hardware: All All
: P3 normal (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-03-03 04:56 UTC by Jin Choi
Modified: 2004-11-16 19:05 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jin Choi 2002-03-03 04:56:40 UTC
http://jakarta.apache.org/taglibs/doc/standard-
doc/DB_FunctionalDescription_1_EA3.html describes three ways to access a 
DataSource from JSTL, the first being Transparent collaboration, where an 
initialization servlet or whatever initializes a magic attribute to a valid 
DataSource.

In attempting to use that facility, I discovered that this facility does not 
appear to work at all in EA3. I was able to get it to work in the latest 
nightly build, but I had to read the source to discover that instead of 
actually using the attribute javax.servlet.jsp.jstl.sql.dataSource, it used the 
attribute named by whatever the parameter javax.servlet.jsp.jstl.sql.dataSource 
is set to. This is probably on purpose, I would guess, but the documentation 
should be changed to reflect that.
Comment 1 Justyna Horwat 2002-04-04 21:51:15 UTC
Your interpretation of the spec is correct. The scoped variable should be used.
Fixed in the beta1 nightly build.