HI, I'm using struts & torque together. I put some initialize code in one of my class as a static code. But these code is not executed until class DataModel is lodaded. So, if I call any function of Torque, it will report that "Torque is not initialized".
Where can I put some global initialize code for the application ? Thanks. Annie public class DataModel { static { try{ Torque.init("piso.properties"); } catch (Exception e) { e.printStackTrace(); } }