I overrode the ActionServlet's initOther() method and put this code in
there:
// this code runs when the servlet gets initialized
DataSource ds =
this.findDataSource("org.apache.struts.action.DATA_SOURCE");
Database.setSystemDatabase(new Database(ds));
// now anywhere in the system you can cal
There's a couple of pieces missing in my understanding of this:
1. How do you get hold of the DataSource of the ActionServlet subclass?
Is this what getSystemDatabase() does? If so, then how?
2. Am I right in assuming that the getSystemDatabase() method
instantiates a new Database clas
2 matches
Mail list logo