Dave, I don't really have any preferrence at this time, I'll use anything that'll work :o) Could you please explain the ' context listener ' method you follow.
Thx Dave Newton <[EMAIL PROTECTED]> wrote: --- newtostruts struts wrote: > newtostruts struts wrote: I > want to initialize torque in Struts2. I've got the > code to initialize torque and it works fine. > The problem is where do I put that code. > Is there a place like an init method which is called > just once? Personally I've always used (well... you know what I mean) a context listener to do one-time app initialization (and startup servlets before that). I don't really see any reason to not do the same with S2, I suppose, although I'll be interested with what other people are doing. (I used to use Torque, too... at the time it seemed like a pretty good choice to me. I don't any more, but I had great success with it.) d. ____________________________________________________________________________________Got a little couch potato? Check out fun summer activities for kids. http://search.yahoo.com/search?fr=oni_on_mail&p=summer+activities+for+kids&cs=bz --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------- Yahoo! oneSearch: Finally, mobile search that gives answers, not web links.