You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Karl Basel <kb...@freemail.absa.co.za> on 2001/06/22 06:10:37 UTC

Database Config Url

Hi all,

I'm currently developing on a W2K box and deploying to a Linux box. The
problem I have is in the struts-config.xml file for datasource
configurations. Is there a way to use an environment variable as the initial
path for the DB url? When I need to build a production release, I first have
to change it so that it suits Linux.

Heres the conf, any input would be appreciated.

Thanks,
karl
/***************************************************************************
*/
<data-source
    autoCommit="false"
    description="Test Database"
    driverClass="interbase.interclient.Driver"
    maxCount="5"
    minCount="2"
    password="pass"
	**Windows**
    url="jdbc:interbase://localhost/d:/Projects/database/test.gdb"
	**Linux**
    url="jdbc:interbase://localhost/projects/database/test.gdb"
    user="user"

  />
/***************************************************************************
*/