You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@jakarta.apache.org by pauly <pa...@x-radio.com> on 2000/02/25 20:47:02 UTC

Global Init Parameters

Here's a quick question --

is there a way I can specify a set of init parameters that every one of
the servlets in my web application will inherit, or must I put the same
line in every servlet definition?

thanks
-- paul

______________________________________________________
  Paul Risenhoover

www.X-Radio.com    www.Riddim.com
AIM: badpauly    ICQ: 53504928



Re: Global Init Parameters

Posted by "Craig R. McClanahan" <cm...@mytownnet.com>.
The simplest thing to do would be to use context initialization parameters
instead.  These are specified by using <context-param> elements in the web
application deployment descriptor, and retrieved in a servlet via:

    getServletContext().getInitParameter("param_name");

and similar calls.

Craig McClanahan


pauly wrote:

> Here's a quick question --
>
> is there a way I can specify a set of init parameters that every one of
> the servlets in my web application will inherit, or must I put the same
> line in every servlet definition?
>
> thanks
> -- paul
>
> ______________________________________________________
>   Paul Risenhoover
>
> www.X-Radio.com    www.Riddim.com
> AIM: badpauly    ICQ: 53504928
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: general-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: general-help@jakarta.apache.org