On Thu, 2 Aug 2001, Viktors Krebss wrote:
> Hello,
>
> Does anyone know how can I access servlet init parameters form another
> servlet ?
> I mean I can access servlet context (<context-param> ) using
> getServletContext().getContext("/someservlet")
> but what I need is to get into <servlet>
> ...<init-param>param-I-need-to-know</ .
> Is it possible at all ?
> Thanks for you help.
>
There's nothing in the servlet API that lets you access this.
Of course, you could parse the /WEB-INF/web.xml file yourself, but it
seems much easier (to me, at least) to make the shared parameter a context
init param instead.
> Viktors Krebss, [EMAIL PROTECTED]
Craig