Hello
I'm wondering whether anyone has every used digester to read in properties
from config.xml and then addSetProperty to change a couple of values..
E.g.
<data-source key="mykey" jism="jism" username="frank" password="butcher" />
Now I want to make a connection to pretty much the same db etc.. Has anyone
tried.
Digester newdatasource = new Digester();
newdatasource . addObjectCreate("datasources/datasource", "DataSource");
newdatasource
.AddSetProperty("struts-config/datasources/datasource/setproperty","key","my
key�);
newdatasource
.AddSetProperty("struts-config/datasources/datasource/setproperty","username
","ricky�);
newdatasource
.AddSetProperty("struts-config/datasources/datasource/setproperty","password
","bianca�);
//Some means of reading in the properties that I don�t want to change, but I
haven�t found yet.. Etc
Javax.sql.DataSource ds = getDatasource(�mykey�);
Will this work?
Has anyone done this.,
Many thanks in advance and seasonal felicitations
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>