Using *servlet* initialization parameters, you can only define the
parameters for each servlet individually.  However, you might consider
using *context* initialization parameters instead:

    <context-param>
        <param-name>global-parameter</param-name>
        <param-value>global-value</param-value>
    </context-param>

which can be retrieved from any servlet in your application by calling:

    String value =
      getServletContext().getInitParameter("global-parameter");

Craig McClanahan



Wolle wrote:

> Hello,
>
> i'm a newbie and i think it's not such a difficultly question.
> I have some servelet, all in one Package.
> But, of course other class names.
> How could I give them the same init Paramter out of the web.xml File ?
> Could I use wildcarts or so ?
> Or could I wrote more Filenames in the <servlet-name> and
> <servlet-class> tag ?
>
> File looks like :
>
>   <servlet>
>         <servlet-name>
>             verwaltungsservlet.StartUp
>         </servlet-name>
>         <servlet-class>
>             verwaltungsservlet.StartUp
>         </servlet-class>
>         <init-param>
>             <param-name>..</param-name>
>             <param-value>.....</param-value>
>         </init-param>
> ............
>          <init-param>
>             <param-name>......</param-name>
>             <param-value>....</param-value>
>         </init-param>
>     </servlet>
>
> Thank you for inconvenience,
> Michael
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to