tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Viktors Krebss <lo...@delfi.lv>
Subject Re: ServletContext access question
Date Fri, 03 Aug 2001 08:37:03 GMT


Bojan Smojver wrote:

> Maybe you can use application init parameters instead?
>
> Bojan
>
> 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("/some_servlet")
> > but what I need is to get into
> > <servlet>...<init-param>param-I-need-to-know</init-param>...</servlet>
.
> > Is it possible at all ?
> > Thanks for you help.
> >

Thanks for your reply.
Well, if no solution will come up I'll have to move everything to
context-params.
( what quite inconvenient for some reasons)
But still, does servlet API has such thing as accessing cross context init
params
or not ? Would be useful thing to know.

Regards,
--

Viktors Krebss, lopik@delfi.lv
SMC , http://www.smc.lv/
tel: +371-7777748, mob: +371-9243923, fax: +371-7777701



Mime
View raw message