You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Nicolas De Loof <ni...@cgey.com> on 2002/04/23 12:23:46 UTC

How to access Application scope at servlet initialization

I would like to use an InitServlet that runs before Struts ActionServlet, to
put some datas in application scope.

In the init() method I can get the servletContext using
ServletConfig.getServletContext(), but how to access Application scope ?


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: How to access Application scope at servlet initialization

Posted by Nicolas De Loof <ni...@cgey.com>.
As I read my question it seems I would have to go to bed early toonight !
ServletContext() IS application scope ...

Excuse me for this mail. I think my mind is filled by French elections
disaster (I'm a french guy).



> I would like to use an InitServlet that runs before Struts ActionServlet,
to
> put some datas in application scope.
>
> In the init() method I can get the servletContext using
> ServletConfig.getServletContext(), but how to access Application scope ?
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>