Bug 7305 - No Provision for Database Username and Password
Summary: No Provision for Database Username and Password
Status: RESOLVED INVALID
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
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-03-21 01:46 UTC by David Geary
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 David Geary 2002-03-21 01:46:47 UTC
The JSTL specification discusses "Explicit collaboration via application 
logic" for JSTL SQL tags, whereby controller code stores a data source whose 
name and scope are communicated to the page author. The page author can then 
access that data source with the <sql:query> action.

This all works just fine, but there's no way to specify a database username 
and password for this scenario. I mistakenly thought that setting the 
initialization parameters javax.servlet.jsp.jstl.sql.user and 
javax.servlet.jsp.jstl.sql.password in the deployment descriptor would cause 
<sql:query> to call the data source's getConnection(String user, String 
password), but that is not the case; instead, getConnection() is called. As a 
result, there is no way (that I can see) to obtain a connection with a 
username and password under the "Explicit collaboration via application logic" 
scenario.
Comment 1 Shawn Bayern 2002-03-21 23:58:30 UTC
Not an RI bug.