You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Roger Varley <ro...@googlemail.com> on 2007/02/22 15:10:04 UTC

[S2] Equivalent of Servlet init() method?

Hi

I'm a struts2 newbie & I've just got the hello world app running. I'm
now trying to convert a simple servlet app to struts2. In the original
servlet I use a singleton factory class which I initialise/setup in
the servlets init() method and use it in the servlet service() method.
What is the equivalent means of achieving this on Struts2 so that I
can set up the factory once and simply "use" it in my action class.

In addition, other than the wiki I'd be grateful if anyone could
recommend other documentation/tutorial sources. Should I also be
reading up on WebWork &/or Struts 1?

Regards
Roger

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org