tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Petter Karlström <petter.karlst...@ling.gu.se>
Subject default DataSource for mySQL?
Date Mon, 13 Jan 2003 08:32:39 GMT
Hi all,

I'm accessing a mySQL database via JSTL:

<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<%@ taglib prefix="sql" uri="http://java.sun.com/jstl/sql" %>

<sql:setDataSource var="example" scope="application"
    driver="com.mysql.jdbc.Driver"
    url="jdbc:mysql://localhost/testDB"
    user="****"
    password="****"
/>
...

This works fine. However, I fail to find correct info on how to set 
this DataSource to be the default one in server.xml (or by Tomcat's 
web interface). I'm running Tomcat 4.1.12 and mySQL 3.23.51 How to 
set the database in web.xml would be helpful as well.

thanks

Petter Karlström

--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message