You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Petter Karlström <pe...@ling.gu.se> on 2003/01/13 09:32:39 UTC

default DataSource for mySQL?

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:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>