Hi all,

the init-parameters do not work as expected when using <sql:driver>.

I added all the init-parameters (using the new names for the latest nightly
build), but

<sql:driver var="conn"/>

gives a "Url may not be null" when I execute a <sql:query>.
But it works if I add this right after the <sql:driver> tag:

<%
DataSourceWrapper conn =
(DataSourceWrapper)pageContext.getAttribute("conn");
conn.setDriverClassName( pageContext.getServletContext().getInitParameter("j
avax.servlet.jsp.jstl.sql.driver") );
conn.setJdbcURL( pageContext.getServletContext().getInitParameter("javax.ser
vlet.jsp.jstl.sql.url") );
conn.setUserName( pageContext.getServletContext().getInitParameter("javax.se
rvlet.jsp.jstl.sql.user") );
conn.setPassword( pageContext.getServletContext().getInitParameter("javax.se
rvlet.jsp.jstl.sql.password") );
%>

Cheers,

Ingmar Stein


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to