Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

[S2] Equivalent of Servlet init() method?

Roger Varley

2007-02-22


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@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.