jarbaby
Posts: 3
|
| Posted: 04/13/2008, 1:54 PM |
|
We support multiple database instances at our company, so any support tool we build would need to be able to first select the target db (e.g. url, username, password, ...) from a list, before any of the forms could be exercised.
What is the most straightforward way to do this? Is there a way to override the default connection assigned in the site.properties file?
|
 |
 |
lwismanuel
Posts: 39
|
| Posted: 04/13/2008, 9:28 PM |
|
what's your development environment?
In PHP for instance, you could use this method: <connection>->connect(database, host, port, user, password)
Description
This method establishes a database connection using the specified parameters. This method can be used to establish a database connection at runtime, for instance when the connection parameters are not known at design-time.
|
 |
 |
jarbaby
Posts: 3
|
| Posted: 04/14/2008, 8:10 AM |
|
We're a Java shop. I'm using the JSP taget for now, but could probably make it servlets also.
What I'd really like to do is to write my forms against a target connection name, but also have an index page where I assign the parameters to that connection.
|
 |
 |
|