ActionServlet is a "plain Servlet" you can extend it and override the init()
method (make sure you call super.init(), so that the standard Struts init(0
stuff is done.

Niall

> -----Original Message-----
> From: Andreas Schildbach [mailto:[EMAIL PROTECTED]]
> Sent: 06 July 2001 18:02
> To: [EMAIL PROTECTED]
> Subject: Where to do the init() for Actions?
>
>
> Is there a similar thing to Servlet.init() in Actions?
> I want to access EJB's in Actions and have to setup the
> InitialContext, look
> up some Bean Remote Interfaces, etc. I don't want to do this every time my
> Action is called.
> If I were using a plain Servlet, I would put this stuff into init()...
>
> Thanks,
>
>  - Andreas
>
>

Reply via email to