> -----Original Message----- > From: Research labs [mailto:[EMAIL PROTECTED] > Sent: Monday, August 02, 2004 12:15 PM > To: Struts Users Mailing List > Subject: DaTASOURCE CREATION AT USER LOGIN TIME...Newbie > > > Hello, > > Can anyone please tell me how to specify the username > and password for "<data-source" at the time a user > logs in, instead of hard coding as "ola" is hardcoded > below: > > <data-sources> > <data-source > type="org.apache.commons.dbcp.BasicDataSource"> > <set-property property="driverClassName" > value="com.mysql.jdbc.Driver" /> > <set-property property="url" > value="jdbc:mysql://localhost/cargo" /> > <set-property property="username" value="ola" /> > <set-property property="password" value="ola" /> > </data-source> > </data-sources> > > If this is not possible, can you please tell an > alternative way of achieving this.
I think you're deep into containter dependency here. Not sure what you're needs are for a dynamic login it to the database, you could also look at providing the informaiton through Ant, or other build tool. > > Thanks. > > Ola. > > > > > > ___________________________________________________________ALL > -NEW Yahoo! Messenger - all new features - even more fun! http://uk.messenger.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]